mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
FIX CS
This commit is contained in:
parent
ea9c21e021
commit
c33330969c
@ -125,7 +125,7 @@ class EventSearch extends AbstractSearch
|
|||||||
$orWhere = $qb->expr()->orX();
|
$orWhere = $qb->expr()->orX();
|
||||||
|
|
||||||
foreach ($reachableCenters as $center) {
|
foreach ($reachableCenters as $center) {
|
||||||
$n = $n+1;
|
$n = $n + 1;
|
||||||
$circles = $this->authorizationHelper->getReachableScopes(
|
$circles = $this->authorizationHelper->getReachableScopes(
|
||||||
$this->security->getUser(),
|
$this->security->getUser(),
|
||||||
'CHILL_EVENT_SEE',
|
'CHILL_EVENT_SEE',
|
||||||
|
@ -167,7 +167,7 @@ final class PersonController extends AbstractController
|
|||||||
{
|
{
|
||||||
$person = new Person();
|
$person = new Person();
|
||||||
|
|
||||||
$authorizedCenters =$this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
$authorizedCenters = $this->authorizationHelper->getReachableCenters($this->getUser(), PersonVoter::CREATE);
|
||||||
|
|
||||||
if (1 === count($authorizedCenters)) {
|
if (1 === count($authorizedCenters)) {
|
||||||
$person->setCenter($authorizedCenters[0]);
|
$person->setCenter($authorizedCenters[0]);
|
||||||
|
@ -108,7 +108,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase
|
|||||||
): void {
|
): void {
|
||||||
$context = $this->buildContext();
|
$context = $this->buildContext();
|
||||||
$template = new DocGeneratorTemplate();
|
$template = new DocGeneratorTemplate();
|
||||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||||
->setDescription("description")->setActive(true)
|
->setDescription("description")->setActive(true)
|
||||||
->setOptions($options);
|
->setOptions($options);
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ final class PersonContextTest extends KernelTestCase
|
|||||||
self::$container->get(ThirdPartyRepository::class)
|
self::$container->get(ThirdPartyRepository::class)
|
||||||
);
|
);
|
||||||
$template = new DocGeneratorTemplate();
|
$template = new DocGeneratorTemplate();
|
||||||
$template->setName(["fr" =>"test"])->setContext(AccompanyingPeriodContext::class)
|
$template->setName(["fr" => "test"])->setContext(AccompanyingPeriodContext::class)
|
||||||
->setDescription("description")->setActive(true)
|
->setDescription("description")->setActive(true)
|
||||||
->setOptions($options);
|
->setOptions($options);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user