mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Fix new CS
This commit is contained in:
@@ -214,7 +214,7 @@ final class PersonController extends AbstractController
|
||||
{
|
||||
$person = new Person();
|
||||
|
||||
$authorizedCenters =$this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
||||
$authorizedCenters = $this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
||||
|
||||
if (1 === count($authorizedCenters)) {
|
||||
$person->setCenter($authorizedCenters[0]);
|
||||
|
@@ -108,7 +108,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase
|
||||
): void {
|
||||
$context = $this->buildContext();
|
||||
$template = new DocGeneratorTemplate();
|
||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
||||
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||
->setDescription("description")->setActive(true)
|
||||
->setOptions($options);
|
||||
|
||||
|
@@ -102,7 +102,7 @@ final class PersonContextTest extends KernelTestCase
|
||||
self::$container->get(ThirdPartyRepository::class)
|
||||
);
|
||||
$template = new DocGeneratorTemplate();
|
||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
||||
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||
->setDescription("description")->setActive(true)
|
||||
->setOptions($options);
|
||||
|
||||
|
Reference in New Issue
Block a user