From 662e962549b8f30cd8e0dd90d63765434db22bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 3 Nov 2025 16:22:33 +0100 Subject: [PATCH] fix CS --- .../ACPAggregators/BySocialActionAggregatorTest.php | 2 +- .../ACPAggregators/BySocialIssueAggregatorTest.php | 2 +- .../Export/Aggregator/ActivityUserAggregatorTest.php | 2 +- .../LinkedToACP/SumActivityVisitDurationTest.php | 2 +- .../Tests/Export/Filter/ActivityReasonFilterTest.php | 2 +- .../Tests/Export/Filter/ActivityTypeFilterTest.php | 2 +- .../PersonFilters/ActivityReasonFilterTest.php | 2 +- .../PersonHavingActivityBetweenDateFilterTest.php | 2 +- .../PersonHavingActivityBetweenDateFilterTest.php | 2 +- .../Command/MapAndSubscribeUserCalendarCommand.php | 7 +++---- .../SendTestShortMessageOnCalendarCommand.php | 3 +-- .../Tests/Export/Aggregator/AgentAggregatorTest.php | 2 +- .../Export/Aggregator/CancelReasonAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/JobAggregatorTest.php | 2 +- .../Export/Aggregator/LocationAggregatorTest.php | 2 +- .../Export/Aggregator/LocationTypeAggregatorTest.php | 2 +- .../Export/Aggregator/MonthYearAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/ScopeAggregatorTest.php | 2 +- .../Tests/Export/Filter/AgentFilterTest.php | 2 +- .../Tests/Export/Filter/BetweenDatesFilterTest.php | 2 +- .../Tests/Export/Filter/JobFilterTest.php | 2 +- .../Tests/Export/Filter/ScopeFilterTest.php | 2 +- .../Command/CreateFieldsOnGroupCommand.php | 3 +-- .../Serializer/Normalizer/DocGenObjectNormalizer.php | 4 ++-- .../Service/Messenger/OnGenerationFailsTest.php | 3 ++- .../CRUD/Controller/CRUDController.php | 2 -- .../Command/ChillImportUsersCommand.php | 3 +-- .../Command/DumpListPermissionsCommand.php | 4 +--- .../Command/ExecuteCronJobCommand.php | 3 +-- .../LoadAddressesBEFromBestAddressCommand.php | 3 +-- .../Command/LoadAddressesFRFromBANCommand.php | 4 +--- .../Command/LoadAddressesFRFromBANOCommand.php | 4 +--- .../Command/LoadAddressesLUFromBDAddressCommand.php | 3 +-- .../Command/LoadAndUpdateLanguagesCommand.php | 8 +++----- .../ChillMainBundle/Command/LoadCountriesCommand.php | 4 +--- .../ChillMainBundle/Command/LoadPostalCodeFR.php | 4 +--- .../Command/LoadPostalCodesCommand.php | 4 +--- .../ChillMainBundle/Command/SetPasswordCommand.php | 4 +--- .../Command/SynchronizeEntityInfoViewsCommand.php | 3 +-- .../ChillMainBundle/Controller/MenuController.php | 5 ++--- .../Controller/UserUpdateProfileController.php | 1 - .../Controller/WorkflowWaitStepChangeController.php | 1 - .../Entity/Workflow/EntityWorkflow.php | 4 ++-- src/Bundle/ChillMainBundle/Routing/MenuTwig.php | 1 - .../Security/Authorization/AuthorizationHelper.php | 3 ++- .../Authorization/EntityWorkflowTransitionVoter.php | 3 ++- .../Templating/ChillTwigRoutingHelper.php | 3 --- .../Templating/TranslatableStringTwig.php | 3 --- .../Tests/Export/ExportManagerTest.php | 2 +- .../Notification/Email/NotificationMailerTest.php | 4 ++-- .../NotificationToUserGroupsOnTransitionTest.php | 2 +- .../Helper/WorkflowRelatedEntityPermissionHelper.php | 3 ++- .../Command/ChillPersonMoveCommand.php | 3 +-- .../Command/ImportSocialWorkMetadata.php | 3 +-- .../RemoveOldDraftAccompanyingPeriodCommand.php | 4 +--- ...ingPeriodWorkEvaluationDocumentMoveController.php | 1 - src/Bundle/ChillPersonBundle/Entity/Person.php | 5 ++--- .../WorkflowSignatureCancelControllerStepTest.php | 2 +- .../AdministrativeLocationAggregatorTest.php | 2 +- .../ClosingMotiveAggregatorTest.php | 2 +- .../ConfidentialAggregatorTest.php | 2 +- .../DurationAggregatorTest.php | 2 +- .../EmergencyAggregatorTest.php | 2 +- .../EvaluationAggregatorTest.php | 2 +- .../GeographicalUnitStatAggregatorTest.php | 2 +- .../IntensityAggregatorTest.php | 2 +- .../OriginAggregatorTest.php | 2 +- .../ReferrerAggregatorTest.php | 2 +- .../RequestorAggregatorTest.php | 2 +- .../ScopeAggregatorTest.php | 2 +- .../SocialActionAggregatorTest.php | 2 +- .../SocialIssueAggregatorTest.php | 2 +- .../StepAggregatorTest.php | 2 +- .../UserJobAggregatorTest.php | 2 +- .../EvaluationTypeAggregatorTest.php | 2 +- .../ChildrenNumberAggregatorTest.php | 2 +- .../CompositionAggregatorTest.php | 2 +- .../PersonAggregators/AgeAggregatorTest.php | 2 +- .../CountryOfBirthAggregatorTest.php | 2 +- .../PersonAggregators/GenderAggregatorTest.php | 2 +- .../HouseholdPositionAggregatorTest.php | 2 +- .../MaritalStatusAggregatorTest.php | 2 +- .../PersonAggregators/NationalityAggregatorTest.php | 2 +- .../ActionTypeAggregatorTest.php | 2 +- .../SocialWorkAggregators/GoalAggregatorTest.php | 2 +- .../GoalResultAggregatorTest.php | 2 +- .../SocialWorkAggregators/JobAggregatorTest.php | 2 +- .../SocialWorkAggregators/ResultAggregatorTest.php | 2 +- .../SocialWorkAggregators/ScopeAggregatorTest.php | 2 +- .../Export/StatAccompanyingCourseDurationTest.php | 2 +- .../ActiveOnDateFilterTest.php | 2 +- .../ActiveOneDayBetweenDatesFilterTest.php | 2 +- .../AdministrativeLocationFilterTest.php | 2 +- .../ClosingMotiveFilterTest.php | 2 +- .../ConfidentialFilterTest.php | 2 +- .../EmergencyFilterTest.php | 2 +- .../EvaluationFilterTest.php | 2 +- .../GeographicalUnitStatFilterTest.php | 2 +- .../IntensityFilterTest.php | 2 +- .../OpenBetweenDatesFilterTest.php | 2 +- .../AccompanyingCourseFilters/OriginFilterTest.php | 2 +- .../RequestorFilterTest.php | 2 +- .../SocialActionFilterTest.php | 2 +- .../SocialIssueFilterTest.php | 2 +- .../EvaluationFilters/EvaluationTypeFilterTest.php | 2 +- .../Filter/EvaluationFilters/MaxDateFilterTest.php | 2 +- .../HouseholdFilters/CompositionFilterTest.php | 2 +- .../Export/Filter/PersonFilters/AgeFilterTest.php | 2 +- .../Filter/PersonFilters/BirthdateFilterTest.php | 2 +- .../Filter/PersonFilters/DeadOrAliveFilterTest.php | 2 +- .../Filter/PersonFilters/DeathdateFilterTest.php | 2 +- .../Export/Filter/PersonFilters/GenderFilterTest.php | 2 +- .../Filter/PersonFilters/MaritalStatusFilterTest.php | 2 +- .../Filter/PersonFilters/NationalityFilterTest.php | 2 +- .../ResidentialAddressAtThirdpartyFilterTest.php | 2 +- .../ResidentialAddressAtUserFilterTest.php | 2 +- .../Filter/SocialWorkFilters/JobFilterTest.php | 2 +- .../Filter/SocialWorkFilters/ReferrerFilterTest.php | 2 +- .../Filter/SocialWorkFilters/ScopeFilterTest.php | 2 +- .../Controller/ReportController.php | 12 ++++++------ .../Templating/UI/CountNotificationTask.php | 4 +--- 121 files changed, 132 insertions(+), 172 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialActionAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialActionAggregatorTest.php index 6be406993..2431ef744 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialActionAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialActionAggregatorTest.php @@ -29,7 +29,7 @@ final class BySocialActionAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialActionAggregator::class); + $this->aggregator = self::getContainer()->get(BySocialActionAggregator::class); } public function getAggregator(): BySocialActionAggregator diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialIssueAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialIssueAggregatorTest.php index 6f62e69d3..c5f83696c 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialIssueAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ACPAggregators/BySocialIssueAggregatorTest.php @@ -29,7 +29,7 @@ final class BySocialIssueAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ACPAggregators\BySocialIssueAggregator::class); + $this->aggregator = self::getContainer()->get(BySocialIssueAggregator::class); } public function getAggregator(): BySocialIssueAggregator diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php index 0ab03dcfd..12810fad8 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php @@ -34,7 +34,7 @@ final class ActivityUserAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\ActivityBundle\Export\Aggregator\ActivityUserAggregator::class); + $this->aggregator = self::getContainer()->get(ActivityUserAggregator::class); $request = $this->prophesize() ->willExtend(\Symfony\Component\HttpFoundation\Request::class); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Export/LinkedToACP/SumActivityVisitDurationTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Export/LinkedToACP/SumActivityVisitDurationTest.php index 2ef945e8a..1e23db629 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Export/LinkedToACP/SumActivityVisitDurationTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Export/LinkedToACP/SumActivityVisitDurationTest.php @@ -28,7 +28,7 @@ final class SumActivityVisitDurationTest extends AbstractExportTest { self::bootKernel(); - $this->export = self::getContainer()->get(\Chill\ActivityBundle\Export\Export\LinkedToACP\SumActivityVisitDuration::class); + $this->export = self::getContainer()->get(SumActivityVisitDuration::class); } public function getExport() diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php index 8745c9b58..0b3b27f58 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php @@ -33,7 +33,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\ActivityReasonFilter::class); + $this->filter = self::getContainer()->get(ActivityReasonFilter::class); $request = $this->prophesize() ->willExtend(\Symfony\Component\HttpFoundation\Request::class); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityTypeFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityTypeFilterTest.php index e66740bcf..6857bd852 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityTypeFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityTypeFilterTest.php @@ -31,7 +31,7 @@ final class ActivityTypeFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\ActivityTypeFilter::class); + $this->filter = self::getContainer()->get(ActivityTypeFilter::class); } public function getFilter(): ActivityTypeFilter diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/ActivityReasonFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/ActivityReasonFilterTest.php index cc333a473..789cdfb9a 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/ActivityReasonFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/ActivityReasonFilterTest.php @@ -31,7 +31,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\ActivityReasonFilter::class); + $this->filter = self::getContainer()->get(ActivityReasonFilter::class); } public function getFilter(): ActivityReasonFilter diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/PersonHavingActivityBetweenDateFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/PersonHavingActivityBetweenDateFilterTest.php index a49eb2d3b..97f58b10b 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/PersonHavingActivityBetweenDateFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonFilters/PersonHavingActivityBetweenDateFilterTest.php @@ -30,7 +30,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\PersonHavingActivityBetweenDateFilter::class); + $this->filter = self::getContainer()->get(PersonHavingActivityBetweenDateFilter::class); } public function getFilter(): PersonHavingActivityBetweenDateFilter diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php index e45096af1..1465e7d7f 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php @@ -32,7 +32,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\ActivityBundle\Export\Filter\PersonFilters\PersonHavingActivityBetweenDateFilter::class); + $this->filter = self::getContainer()->get(PersonHavingActivityBetweenDateFilter::class); $request = $this->prophesize() ->willExtend(Request::class); diff --git a/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php b/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php index 519094741..a6c6ad126 100644 --- a/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php +++ b/src/Bundle/ChillCalendarBundle/Command/MapAndSubscribeUserCalendarCommand.php @@ -41,16 +41,15 @@ final class MapAndSubscribeUserCalendarCommand private readonly MapCalendarToUser $mapCalendarToUser, private readonly UserRepositoryInterface $userRepository, private readonly MSUserAbsenceSync $userAbsenceSync, - ) { - } + ) {} public function __invoke( #[\Symfony\Component\Console\Attribute\Option(name: 'renew-before-end-interval', shortcut: 'r', mode: InputOption::VALUE_OPTIONAL, description: 'delay before renewing subscription')] string $renewBeforeEndInterval = 'P1D', #[\Symfony\Component\Console\Attribute\Option(name: 'subscription-duration', shortcut: 's', mode: InputOption::VALUE_OPTIONAL, description: 'duration for the subscription')] string $subscriptionDuration = 'PT4230M', - ?OutputInterface $output = null): int - { + ?OutputInterface $output = null, + ): int { $this->logger->info(self::class.' execute command'); $limit = 50; diff --git a/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php b/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php index c14879190..654a8dda6 100644 --- a/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php +++ b/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php @@ -46,8 +46,7 @@ class SendTestShortMessageOnCalendarCommand private readonly ShortMessageForCalendarBuilderInterface $messageForCalendarBuilder, private readonly TexterInterface $transporter, private readonly UserRepositoryInterface $userRepository, - ) { - } + ) {} public function __invoke(OutputInterface $output): int { diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/AgentAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/AgentAggregatorTest.php index 20fa1f2ff..ccf186f64 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/AgentAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/AgentAggregatorTest.php @@ -36,7 +36,7 @@ final class AgentAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\AgentAggregator::class); + $this->aggregator = self::getContainer()->get(AgentAggregator::class); } public function getAggregator(): AgentAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/CancelReasonAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/CancelReasonAggregatorTest.php index 47f47462d..0ee4d474e 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/CancelReasonAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/CancelReasonAggregatorTest.php @@ -36,7 +36,7 @@ final class CancelReasonAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\CancelReasonAggregator::class); + $this->aggregator = self::getContainer()->get(CancelReasonAggregator::class); } public function getAggregator(): CancelReasonAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/JobAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/JobAggregatorTest.php index b343a0eac..e572c6b9a 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/JobAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/JobAggregatorTest.php @@ -36,7 +36,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\JobAggregator::class); + $this->aggregator = self::getContainer()->get(JobAggregator::class); } public function getAggregator(): JobAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationAggregatorTest.php index 3eb022dd9..575219e3a 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationAggregatorTest.php @@ -36,7 +36,7 @@ final class LocationAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\LocationAggregator::class); + $this->aggregator = self::getContainer()->get(LocationAggregator::class); } public function getAggregator(): LocationAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationTypeAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationTypeAggregatorTest.php index 8bc0953db..b34e08f09 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationTypeAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/LocationTypeAggregatorTest.php @@ -36,7 +36,7 @@ final class LocationTypeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\LocationTypeAggregator::class); + $this->aggregator = self::getContainer()->get(LocationTypeAggregator::class); } public function getAggregator(): LocationTypeAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/MonthYearAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/MonthYearAggregatorTest.php index 92b22d941..502d79738 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/MonthYearAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/MonthYearAggregatorTest.php @@ -36,7 +36,7 @@ final class MonthYearAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\MonthYearAggregator::class); + $this->aggregator = self::getContainer()->get(MonthYearAggregator::class); } public function getAggregator(): MonthYearAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/ScopeAggregatorTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/ScopeAggregatorTest.php index 78dbc1a16..308fbc9a8 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/ScopeAggregatorTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Aggregator/ScopeAggregatorTest.php @@ -36,7 +36,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\CalendarBundle\Export\Aggregator\ScopeAggregator::class); + $this->aggregator = self::getContainer()->get(ScopeAggregator::class); } public function getAggregator(): ScopeAggregator diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/AgentFilterTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/AgentFilterTest.php index b1abc886b..f7659773e 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/AgentFilterTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/AgentFilterTest.php @@ -43,7 +43,7 @@ final class AgentFilterTest extends AbstractFilterTest $request->willExtend(\Symfony\Component\HttpFoundation\Request::class); $request->getLocale()->willReturn('fr'); - $this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\AgentFilter::class); + $this->filter = self::getContainer()->get(AgentFilter::class); } public function getFilter(): AgentFilter diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/BetweenDatesFilterTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/BetweenDatesFilterTest.php index 911e08f42..7dd401410 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/BetweenDatesFilterTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/BetweenDatesFilterTest.php @@ -43,7 +43,7 @@ final class BetweenDatesFilterTest extends AbstractFilterTest $request->willExtend(\Symfony\Component\HttpFoundation\Request::class); $request->getLocale()->willReturn('fr'); - $this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\BetweenDatesFilter::class); + $this->filter = self::getContainer()->get(BetweenDatesFilter::class); } public function getFilter(): BetweenDatesFilter diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/JobFilterTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/JobFilterTest.php index f1bd59810..441e7ea76 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/JobFilterTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/JobFilterTest.php @@ -44,7 +44,7 @@ final class JobFilterTest extends AbstractFilterTest $request->willExtend(\Symfony\Component\HttpFoundation\Request::class); $request->getLocale()->willReturn('fr'); - $this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\JobFilter::class); + $this->filter = self::getContainer()->get(JobFilter::class); } public function getFilter(): JobFilter diff --git a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/ScopeFilterTest.php b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/ScopeFilterTest.php index a6b0deab7..c46936162 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/ScopeFilterTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Export/Filter/ScopeFilterTest.php @@ -44,7 +44,7 @@ final class ScopeFilterTest extends AbstractFilterTest $request->willExtend(\Symfony\Component\HttpFoundation\Request::class); $request->getLocale()->willReturn('fr'); - $this->filter = self::getContainer()->get(\Chill\CalendarBundle\Export\Filter\ScopeFilter::class); + $this->filter = self::getContainer()->get(ScopeFilter::class); } public function getFilter(): ScopeFilter diff --git a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php index 26442c39b..4d1835ac2 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php +++ b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php @@ -45,8 +45,7 @@ class CreateFieldsOnGroupCommand private readonly ValidatorInterface $validator, private $availableLanguages, private $customizablesEntities, - ) { - } + ) {} /** * Delete the existing custom fields for a given customFieldGroup. diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php index c716b354e..2e260ea03 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php +++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php @@ -62,7 +62,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte $attributes = \array_filter( $metadata->getAttributesMetadata(), static function (AttributeMetadataInterface $a) use ($expectedGroups) { - return array_any($a->getGroups(), fn($g) => \in_array($g, $expectedGroups, true)); + return array_any($a->getGroups(), fn ($g) => \in_array($g, $expectedGroups, true)); } ); @@ -147,7 +147,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte // add a discriminator if (null !== $discriminator = $metadata->getClassDiscriminatorMapping()) { $typeKey = $discriminator->getTypeProperty(); - $typeValue = array_find_key($discriminator->getTypesMapping(), fn($typeClass) => $typeClass === $context['docgen:expects']); + $typeValue = array_find_key($discriminator->getTypesMapping(), fn ($typeClass) => $typeClass === $context['docgen:expects']); if (null === $typeValue) { $typeKey = null; diff --git a/src/Bundle/ChillDocGeneratorBundle/tests/Service/Messenger/OnGenerationFailsTest.php b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Messenger/OnGenerationFailsTest.php index 12805baa4..474c39d90 100644 --- a/src/Bundle/ChillDocGeneratorBundle/tests/Service/Messenger/OnGenerationFailsTest.php +++ b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Messenger/OnGenerationFailsTest.php @@ -115,7 +115,8 @@ class OnGenerationFailsTest extends TestCase if (!$arg instanceof Email) { return false; } - return array_any($arg->getTo(), fn($to) => 'test@test.com' === $to->getAddress()); + + return array_any($arg->getTo(), fn ($to) => 'test@test.com' === $to->getAddress()); }), Argument::any() ) diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php index 8261ebfe2..e3d630c12 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php @@ -189,8 +189,6 @@ class CRUDController extends AbstractController * build a default role name, using the crud resolver. * * This method should not be overriden. Override `getRoleFor` instead. - * - * @return string */ protected function buildDefaultRole(string $action): string { diff --git a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php index 1058dee62..b3a9bacca 100644 --- a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php +++ b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php @@ -60,8 +60,7 @@ class ChillImportUsersCommand protected \Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface $passwordEncoder, protected ValidatorInterface $validator, protected UserRepository $userRepository, - ) { - } + ) {} protected function appendUserToFile(User $user) { diff --git a/src/Bundle/ChillMainBundle/Command/DumpListPermissionsCommand.php b/src/Bundle/ChillMainBundle/Command/DumpListPermissionsCommand.php index 066fc492c..99d0ed2cf 100644 --- a/src/Bundle/ChillMainBundle/Command/DumpListPermissionsCommand.php +++ b/src/Bundle/ChillMainBundle/Command/DumpListPermissionsCommand.php @@ -19,9 +19,7 @@ use Symfony\Component\Console\Output\OutputInterface; #[AsCommand(name: 'chill:main:dump-list-permissions', description: 'Print a markdown reference of permissions (roles) grouped by title with dependencies).')] final readonly class DumpListPermissionsCommand { - public function __construct(private RoleDumper $roleDumper) - { - } + public function __construct(private RoleDumper $roleDumper) {} public function __invoke(OutputInterface $output): int { diff --git a/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php b/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php index b8ad311e9..ae0e3cc9f 100644 --- a/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php +++ b/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php @@ -25,8 +25,7 @@ class ExecuteCronJobCommand public function __construct( private readonly CronManagerInterface $cronManager, - ) { - } + ) {} protected function configure() { diff --git a/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php index 26ecab06c..6f2d63d35 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php @@ -24,8 +24,7 @@ class LoadAddressesBEFromBestAddressCommand public function __construct( private readonly AddressReferenceBEFromBestAddress $addressImporter, private readonly PostalCodeBEFromBestAddress $postalCodeBEFromBestAddressImporter, - ) { - } + ) {} public function __invoke( #[\Symfony\Component\Console\Attribute\Argument(name: 'lang', description: "Language code, for example 'fr'")] diff --git a/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANCommand.php index d5d93964d..0c0301168 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANCommand.php @@ -21,9 +21,7 @@ class LoadAddressesFRFromBANCommand { protected static $defaultDescription = 'Import FR addresses from BAN (see https://adresses.data.gouv.fr'; - public function __construct(private readonly AddressReferenceFromBAN $addressReferenceFromBAN) - { - } + public function __construct(private readonly AddressReferenceFromBAN $addressReferenceFromBAN) {} public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'departementNo', description: 'a list of departement numbers')] array $departementno, #[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')] diff --git a/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANOCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANOCommand.php index 1401c97c9..2b0c8fe24 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANOCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAddressesFRFromBANOCommand.php @@ -21,9 +21,7 @@ class LoadAddressesFRFromBANOCommand { protected static $defaultDescription = 'Import FR addresses from bano (see https://bano.openstreetmap.fr'; - public function __construct(private readonly AddressReferenceFromBano $addressReferenceFromBano) - { - } + public function __construct(private readonly AddressReferenceFromBano $addressReferenceFromBano) {} public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'departementNo', description: 'a list of departement numbers')] array $departementno, #[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')] diff --git a/src/Bundle/ChillMainBundle/Command/LoadAddressesLUFromBDAddressCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAddressesLUFromBDAddressCommand.php index cc571a577..6c01dd89f 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAddressesLUFromBDAddressCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAddressesLUFromBDAddressCommand.php @@ -22,8 +22,7 @@ class LoadAddressesLUFromBDAddressCommand public function __construct( private readonly AddressReferenceLU $addressImporter, - ) { - } + ) {} public function __invoke( #[\Symfony\Component\Console\Attribute\Option(name: 'send-report-email', shortcut: 's', mode: InputOption::VALUE_REQUIRED, description: 'Email address where a list of unimported addresses can be send')] diff --git a/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php index 83f39d812..b9da55236 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAndUpdateLanguagesCommand.php @@ -39,9 +39,7 @@ class LoadAndUpdateLanguagesCommand /** * LoadCountriesCommand constructor. */ - public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ParameterBagInterface $parameterBag) - { - } + public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ParameterBagInterface $parameterBag) {} /** * (non-PHPdoc). @@ -52,8 +50,8 @@ class LoadAndUpdateLanguagesCommand #[\Symfony\Component\Console\Attribute\Option(name: self::INCLUDE_REGIONAL_VERSION, mode: InputOption::VALUE_NONE, description: 'Include the regional languages. The regional languages are languages with code containing')] bool $includeRegional = false, #[\Symfony\Component\Console\Attribute\Option(name: self::INCLUDE_ANCIENT, mode: InputOption::VALUE_NONE, description: 'Include the ancient languages that are languages with code ')] - bool $includeAncient = false): int - { + bool $includeAncient = false, + ): int { $em = $this->entityManager; $chillAvailableLanguages = $this->parameterBag->get('chill_main.available_languages'); $languages = []; diff --git a/src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php b/src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php index 3f49502e2..3d052b45c 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadCountriesCommand.php @@ -22,9 +22,7 @@ class LoadCountriesCommand /** * LoadCountriesCommand constructor. */ - public function __construct(private readonly EntityManager $entityManager, private $availableLanguages) - { - } + public function __construct(private readonly EntityManager $entityManager, private $availableLanguages) {} public static function prepareCountryList($languages) { diff --git a/src/Bundle/ChillMainBundle/Command/LoadPostalCodeFR.php b/src/Bundle/ChillMainBundle/Command/LoadPostalCodeFR.php index c2f833e67..f782d9c42 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadPostalCodeFR.php +++ b/src/Bundle/ChillMainBundle/Command/LoadPostalCodeFR.php @@ -19,9 +19,7 @@ class LoadPostalCodeFR { protected static $defaultDescription = 'Load France\'s postal code from online open data'; - public function __construct(private readonly PostalCodeFRFromOpenData $loader) - { - } + public function __construct(private readonly PostalCodeFRFromOpenData $loader) {} public function __invoke(): int { diff --git a/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php b/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php index b8510a896..00cdb6de8 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadPostalCodesCommand.php @@ -27,9 +27,7 @@ class LoadPostalCodesCommand { protected static $defaultDescription = 'Add the postal code from a csv file.'; - public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ValidatorInterface $validator) - { - } + public function __construct(private readonly EntityManagerInterface $entityManager, private readonly ValidatorInterface $validator) {} public function __invoke(#[\Symfony\Component\Console\Attribute\Argument(name: 'csv_file', description: 'the path to ' .'the csv file. See the help for specifications.')] diff --git a/src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php b/src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php index caa881a82..2d294a2c4 100644 --- a/src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php +++ b/src/Bundle/ChillMainBundle/Command/SetPasswordCommand.php @@ -28,9 +28,7 @@ class SetPasswordCommand /** * SetPasswordCommand constructor. */ - public function __construct(private readonly EntityManager $entityManager) - { - } + public function __construct(private readonly EntityManager $entityManager) {} public function _getUser($username): ?object { diff --git a/src/Bundle/ChillMainBundle/Command/SynchronizeEntityInfoViewsCommand.php b/src/Bundle/ChillMainBundle/Command/SynchronizeEntityInfoViewsCommand.php index e907b4ae1..0cf3326cc 100644 --- a/src/Bundle/ChillMainBundle/Command/SynchronizeEntityInfoViewsCommand.php +++ b/src/Bundle/ChillMainBundle/Command/SynchronizeEntityInfoViewsCommand.php @@ -21,8 +21,7 @@ class SynchronizeEntityInfoViewsCommand public function __construct( private readonly ViewEntityInfoManager $viewEntityInfoManager, - ) { - } + ) {} public function __invoke(): int { diff --git a/src/Bundle/ChillMainBundle/Controller/MenuController.php b/src/Bundle/ChillMainBundle/Controller/MenuController.php index ed9e3cc4a..10e070649 100644 --- a/src/Bundle/ChillMainBundle/Controller/MenuController.php +++ b/src/Bundle/ChillMainBundle/Controller/MenuController.php @@ -18,9 +18,8 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; */ class MenuController extends AbstractController { - public function __construct(private readonly \Chill\MainBundle\Routing\MenuComposer $menuComposer) - { - } + public function __construct(private readonly \Chill\MainBundle\Routing\MenuComposer $menuComposer) {} + public function writeMenuAction($menu, $layout, $activeRouteKey = null, array $args = []): \Symfony\Component\HttpFoundation\Response { return $this->render($layout, [ diff --git a/src/Bundle/ChillMainBundle/Controller/UserUpdateProfileController.php b/src/Bundle/ChillMainBundle/Controller/UserUpdateProfileController.php index 0e1b95dfe..073281e7a 100644 --- a/src/Bundle/ChillMainBundle/Controller/UserUpdateProfileController.php +++ b/src/Bundle/ChillMainBundle/Controller/UserUpdateProfileController.php @@ -26,7 +26,6 @@ use Symfony\Component\HttpFoundation\Session\Session; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Contracts\Translation\TranslatorInterface; -use Symfony\Component\Routing\Annotation\Route; use Twig\Environment; final readonly class UserUpdateProfileController diff --git a/src/Bundle/ChillMainBundle/Controller/WorkflowWaitStepChangeController.php b/src/Bundle/ChillMainBundle/Controller/WorkflowWaitStepChangeController.php index ad61ac4a5..7350273ad 100644 --- a/src/Bundle/ChillMainBundle/Controller/WorkflowWaitStepChangeController.php +++ b/src/Bundle/ChillMainBundle/Controller/WorkflowWaitStepChangeController.php @@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Workflow\EntityWorkflow; use Chill\MainBundle\Routing\ChillUrlGeneratorInterface; use Symfony\Component\HttpFoundation\RedirectResponse; use Symfony\Component\HttpFoundation\Response; -use Symfony\Component\Routing\Annotation\Route; use Twig\Environment; final readonly class WorkflowWaitStepChangeController diff --git a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php index 28a00bd5f..a544cf640 100644 --- a/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php +++ b/src/Bundle/ChillMainBundle/Entity/Workflow/EntityWorkflow.php @@ -367,12 +367,12 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface public function isFinal(): bool { - return array_any($this->getStepsChained(), fn($step) => $step->isFinal()); + return array_any($this->getStepsChained(), fn ($step) => $step->isFinal()); } public function isFreeze(): bool { - return array_any($this->getStepsChained(), fn($step) => $step->isFreezeAfter()); + return array_any($this->getStepsChained(), fn ($step) => $step->isFreezeAfter()); } public function isOnHoldByUser(User $user): bool diff --git a/src/Bundle/ChillMainBundle/Routing/MenuTwig.php b/src/Bundle/ChillMainBundle/Routing/MenuTwig.php index 10821b054..3a1fae869 100644 --- a/src/Bundle/ChillMainBundle/Routing/MenuTwig.php +++ b/src/Bundle/ChillMainBundle/Routing/MenuTwig.php @@ -41,7 +41,6 @@ class MenuTwig extends AbstractExtension * - layout: the layout. Absolute path needed (i.e.: @ChillXyz/section/foo.html.twig) * - activeRouteKey : the key active, will render the menu differently. * - * * @param string $menuId * @param mixed[] $params */ diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php index b522fbd06..03210e0a2 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php @@ -202,7 +202,8 @@ class AuthorizationHelper implements AuthorizationHelperInterface public function userHasAccess(UserInterface $user, mixed $entity, string $attribute): bool { $centers = $this->centerResolverManager->resolveCenters($entity); - return array_any($centers, fn($c) => $this->userHasAccessForCenter($user, $c, $entity, $attribute)); + + return array_any($centers, fn ($c) => $this->userHasAccessForCenter($user, $c, $entity, $attribute)); } /** diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/EntityWorkflowTransitionVoter.php b/src/Bundle/ChillMainBundle/Security/Authorization/EntityWorkflowTransitionVoter.php index f76b23708..d48564956 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/EntityWorkflowTransitionVoter.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/EntityWorkflowTransitionVoter.php @@ -77,6 +77,7 @@ final class EntityWorkflowTransitionVoter extends Voter implements ProvideRoleHi $centers = $this->centerResolverManager->resolveCenters($entity); $reachableCenters = $this->authorizationHelper->getReachableCenters(self::APPLY_ALL_TRANSITIONS); - return array_any($centers, fn($center) => in_array($center, $reachableCenters, true)); + + return array_any($centers, fn ($center) => in_array($center, $reachableCenters, true)); } } diff --git a/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php b/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php index ea61095cf..bfc5af09b 100644 --- a/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php +++ b/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php @@ -13,10 +13,7 @@ namespace Chill\MainBundle\Templating; use Symfony\Bridge\Twig\Extension\RoutingExtension; use Symfony\Component\HttpFoundation\RequestStack; -use Twig\Attribute\AsTwigFunction; -use Twig\ExpressionParser\ExpressionParserInterface; use Twig\Extension\AbstractExtension; -use Twig\Extension\ExtensionInterface; use Twig\Node\Node; use Twig\TwigFilter; use Twig\TwigFunction; diff --git a/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php b/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php index 1f5443255..29ed78cb3 100644 --- a/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php +++ b/src/Bundle/ChillMainBundle/Templating/TranslatableStringTwig.php @@ -11,9 +11,6 @@ declare(strict_types=1); namespace Chill\MainBundle\Templating; -use Twig\Extension\AbstractExtension; -use Twig\Extension\ExtensionInterface; - class TranslatableStringTwig { /** diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php index 768fa09ea..84ede8663 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php @@ -347,7 +347,7 @@ final class ExportManagerTest extends KernelTestCase return new ExportManager( $logger ?? self::getContainer()->get(LoggerInterface::class), - $authorizationChecker ?? self::getContainer()->get(\Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface::class), + $authorizationChecker ?? self::getContainer()->get(AuthorizationCheckerInterface::class), $authorizationHelper ?? self::getContainer()->get(\Chill\MainBundle\Security\Authorization\AuthorizationHelperInterface::class), $tokenStorage, $exports, diff --git a/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php b/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php index 8053cf193..92161db9d 100644 --- a/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Notification/Email/NotificationMailerTest.php @@ -63,7 +63,7 @@ class NotificationMailerTest extends TestCase // a mail only to user1 and user3 should have been sent $mailer->send(Argument::that(function (Email $email) { - return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress()); + return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress() || 'user3@foo.com' === $address->getAddress()); }))->shouldBeCalledTimes(2); $objectManager = $this->prophesize(EntityManagerInterface::class); @@ -96,7 +96,7 @@ class NotificationMailerTest extends TestCase // a mail only to user1 and user3 should have been sent $mailer->send(Argument::that(function (Email $email) { - return array_any($email->getTo(), fn($address) => 'user1@foo.com' === $address->getAddress()); + return array_any($email->getTo(), fn ($address) => 'user1@foo.com' === $address->getAddress()); }))->shouldBeCalledTimes(1); $objectManager = $this->prophesize(EntityManagerInterface::class); diff --git a/src/Bundle/ChillMainBundle/Tests/Workflow/EventSubscriber/NotificationToUserGroupsOnTransitionTest.php b/src/Bundle/ChillMainBundle/Tests/Workflow/EventSubscriber/NotificationToUserGroupsOnTransitionTest.php index b0cb48408..dc784a613 100644 --- a/src/Bundle/ChillMainBundle/Tests/Workflow/EventSubscriber/NotificationToUserGroupsOnTransitionTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Workflow/EventSubscriber/NotificationToUserGroupsOnTransitionTest.php @@ -53,7 +53,7 @@ class NotificationToUserGroupsOnTransitionTest extends KernelTestCase protected function setUp(): void { self::bootKernel(); - $this->twig = self::getContainer()->get(\Twig\Environment::class); + $this->twig = self::getContainer()->get(Environment::class); $this->bodyRenderer = self::getContainer()->get(BodyRendererInterface::class); $this->em = self::getContainer()->get(\Doctrine\ORM\EntityManager::class); } diff --git a/src/Bundle/ChillMainBundle/Workflow/Helper/WorkflowRelatedEntityPermissionHelper.php b/src/Bundle/ChillMainBundle/Workflow/Helper/WorkflowRelatedEntityPermissionHelper.php index 14456d226..1c9d5b1f0 100644 --- a/src/Bundle/ChillMainBundle/Workflow/Helper/WorkflowRelatedEntityPermissionHelper.php +++ b/src/Bundle/ChillMainBundle/Workflow/Helper/WorkflowRelatedEntityPermissionHelper.php @@ -193,6 +193,7 @@ class WorkflowRelatedEntityPermissionHelper if (!$currentUser instanceof User) { return false; } - return array_any($entityWorkflows, fn($entityWorkflow) => $entityWorkflow->isUserInvolved($currentUser)); + + return array_any($entityWorkflows, fn ($entityWorkflow) => $entityWorkflow->isUserInvolved($currentUser)); } } diff --git a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php index 57a282ea7..fffce39a2 100644 --- a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php +++ b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php @@ -30,8 +30,7 @@ final class ChillPersonMoveCommand extends Command private readonly PersonMove $mover, private readonly EntityManagerInterface $em, private readonly LoggerInterface $chillLogger, - ) { - } + ) {} protected function buildLoggingContext(Person $from, Person $to, $deleteEntities, $sqls) { diff --git a/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php b/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php index b96861335..87d5fd150 100644 --- a/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php @@ -23,8 +23,7 @@ final readonly class ImportSocialWorkMetadata public function __construct( private SocialWorkMetadataInterface $importer, - ) { - } + ) {} private function configure(): void { diff --git a/src/Bundle/ChillPersonBundle/Command/RemoveOldDraftAccompanyingPeriodCommand.php b/src/Bundle/ChillPersonBundle/Command/RemoveOldDraftAccompanyingPeriodCommand.php index 211f52d3b..9b7a78de7 100644 --- a/src/Bundle/ChillPersonBundle/Command/RemoveOldDraftAccompanyingPeriodCommand.php +++ b/src/Bundle/ChillPersonBundle/Command/RemoveOldDraftAccompanyingPeriodCommand.php @@ -20,9 +20,7 @@ class RemoveOldDraftAccompanyingPeriodCommand { protected static $defaultDescription = 'Remove draft accompanying period which are still draft and unused'; - public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover) - { - } + public function __construct(private readonly LoggerInterface $logger, private readonly OldDraftAccompanyingPeriodRemoverInterface $remover) {} public function __invoke( #[\Symfony\Component\Console\Attribute\Argument(name: 'interval', description: 'The interval for unactive periods')] diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php index 3807e316e..7412fa6d2 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentMoveController.php @@ -19,7 +19,6 @@ use Symfony\Bundle\SecurityBundle\Security; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; -use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Serializer\Normalizer\AbstractNormalizer; use Symfony\Component\Serializer\SerializerInterface; diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index 3698f7371..6b064bcf6 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -772,7 +772,6 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI * If the `$at` parameter is now, use the method `getCurrentPersonAddress`, which is optimized * on database side. * - * * @throws \Exception */ #[\Deprecated(message: 'since chill2.0, address is linked to the household. Use @see{Person::getCurrentHouseholdAddress}')] @@ -1168,8 +1167,8 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI } /** - * * @return false|mixed|null + * * @throws \Exception */ #[\Deprecated(message: 'Use @see{Person::getCurrentPersonAddress} or @see{Person::getCurrentHouseholdAddress} instead')] @@ -1389,7 +1388,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI */ public function isOpen(): bool { - return array_any($this->getAccompanyingPeriods(), fn($period) => $period->isOpen()); + return array_any($this->getAccompanyingPeriods(), fn ($period) => $period->isOpen()); } public function isSharingHousehold(?\DateTimeImmutable $at = null): bool diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/WorkflowSignatureCancelControllerStepTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/WorkflowSignatureCancelControllerStepTest.php index 4ea6c3eeb..104471194 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/WorkflowSignatureCancelControllerStepTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/WorkflowSignatureCancelControllerStepTest.php @@ -43,7 +43,7 @@ class WorkflowSignatureCancelControllerStepTest extends WebTestCase { self::bootKernel(); - $this->formFactory = self::getContainer()->get(\Symfony\Component\Form\FormFactoryInterface::class); + $this->formFactory = self::getContainer()->get(FormFactoryInterface::class); $this->signatureStepStateChanger = self::getContainer()->get(SignatureStepStateChanger::class); $this->chillUrlGenerator = self::getContainer()->get(ChillUrlGeneratorInterface::class); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/AdministrativeLocationAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/AdministrativeLocationAggregatorTest.php index 4e46725c0..7b6a63936 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/AdministrativeLocationAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/AdministrativeLocationAggregatorTest.php @@ -29,7 +29,7 @@ final class AdministrativeLocationAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\AdministrativeLocationAggregator::class); + $this->aggregator = self::getContainer()->get(AdministrativeLocationAggregator::class); } public function getAggregator(): AdministrativeLocationAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ClosingMotiveAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ClosingMotiveAggregatorTest.php index 03f06a705..4dcbc0ba8 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ClosingMotiveAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ClosingMotiveAggregatorTest.php @@ -29,7 +29,7 @@ final class ClosingMotiveAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ClosingMotiveAggregator::class); + $this->aggregator = self::getContainer()->get(ClosingMotiveAggregator::class); } public function getAggregator(): ClosingMotiveAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ConfidentialAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ConfidentialAggregatorTest.php index 9b906171c..63a6010bd 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ConfidentialAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ConfidentialAggregatorTest.php @@ -29,7 +29,7 @@ final class ConfidentialAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ConfidentialAggregator::class); + $this->aggregator = self::getContainer()->get(ConfidentialAggregator::class); } public function getAggregator(): ConfidentialAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/DurationAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/DurationAggregatorTest.php index 88af891b1..2f1e27a15 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/DurationAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/DurationAggregatorTest.php @@ -29,7 +29,7 @@ final class DurationAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\DurationAggregator::class); + $this->aggregator = self::getContainer()->get(DurationAggregator::class); } public function getAggregator(): DurationAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EmergencyAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EmergencyAggregatorTest.php index df1d66119..541203386 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EmergencyAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EmergencyAggregatorTest.php @@ -29,7 +29,7 @@ final class EmergencyAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\EmergencyAggregator::class); + $this->aggregator = self::getContainer()->get(EmergencyAggregator::class); } public function getAggregator(): EmergencyAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EvaluationAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EvaluationAggregatorTest.php index 8ff54cb00..ede73351a 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EvaluationAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/EvaluationAggregatorTest.php @@ -29,7 +29,7 @@ final class EvaluationAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\EvaluationAggregator::class); + $this->aggregator = self::getContainer()->get(EvaluationAggregator::class); } public function getAggregator(): EvaluationAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregatorTest.php index 252a85807..1b506aa62 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/GeographicalUnitStatAggregatorTest.php @@ -31,7 +31,7 @@ final class GeographicalUnitStatAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\GeographicalUnitStatAggregator::class); + $this->aggregator = self::getContainer()->get(GeographicalUnitStatAggregator::class); } public function getAggregator(): GeographicalUnitStatAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/IntensityAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/IntensityAggregatorTest.php index fd2f8d3c9..b00615b57 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/IntensityAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/IntensityAggregatorTest.php @@ -29,7 +29,7 @@ final class IntensityAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\IntensityAggregator::class); + $this->aggregator = self::getContainer()->get(IntensityAggregator::class); } public function getAggregator(): IntensityAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregatorTest.php index d68e056f0..c46aa7004 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregatorTest.php @@ -29,7 +29,7 @@ final class OriginAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\OriginAggregator::class); + $this->aggregator = self::getContainer()->get(OriginAggregator::class); } public function getAggregator(): OriginAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregatorTest.php index 9774dd1de..4323c30a9 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregatorTest.php @@ -30,7 +30,7 @@ final class ReferrerAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ReferrerAggregator::class); + $this->aggregator = self::getContainer()->get(ReferrerAggregator::class); } /** diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/RequestorAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/RequestorAggregatorTest.php index 202bfba3d..398e84716 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/RequestorAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/RequestorAggregatorTest.php @@ -29,7 +29,7 @@ final class RequestorAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\RequestorAggregator::class); + $this->aggregator = self::getContainer()->get(RequestorAggregator::class); } public function getAggregator(): RequestorAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ScopeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ScopeAggregatorTest.php index 3ee537099..2a643bc6e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ScopeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/ScopeAggregatorTest.php @@ -29,7 +29,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\ScopeAggregator::class); + $this->aggregator = self::getContainer()->get(ScopeAggregator::class); } public function getAggregator(): ScopeAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialActionAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialActionAggregatorTest.php index aebd867a5..e2d6fea93 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialActionAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialActionAggregatorTest.php @@ -29,7 +29,7 @@ final class SocialActionAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\SocialActionAggregator::class); + $this->aggregator = self::getContainer()->get(SocialActionAggregator::class); } public function getAggregator(): SocialActionAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialIssueAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialIssueAggregatorTest.php index 62f62fe18..44cf2dd6d 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialIssueAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/SocialIssueAggregatorTest.php @@ -29,7 +29,7 @@ final class SocialIssueAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\SocialIssueAggregator::class); + $this->aggregator = self::getContainer()->get(SocialIssueAggregator::class); } public function getAggregator(): SocialIssueAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/StepAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/StepAggregatorTest.php index e8343eae9..048adbb87 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/StepAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/StepAggregatorTest.php @@ -30,7 +30,7 @@ final class StepAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\StepAggregator::class); + $this->aggregator = self::getContainer()->get(StepAggregator::class); } public function getAggregator(): StepAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregatorTest.php index 71f26d504..83e5ec627 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AccompanyingCourseAggregators/UserJobAggregatorTest.php @@ -30,7 +30,7 @@ final class UserJobAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\AccompanyingCourseAggregators\UserJobAggregator::class); + $this->aggregator = self::getContainer()->get(UserJobAggregator::class); } /** diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/EvaluationAggregators/EvaluationTypeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/EvaluationAggregators/EvaluationTypeAggregatorTest.php index 4d8acf9fc..ada5a911e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/EvaluationAggregators/EvaluationTypeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/EvaluationAggregators/EvaluationTypeAggregatorTest.php @@ -29,7 +29,7 @@ final class EvaluationTypeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\EvaluationAggregators\EvaluationTypeAggregator::class); + $this->aggregator = self::getContainer()->get(EvaluationTypeAggregator::class); } public function getAggregator(): EvaluationTypeAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/ChildrenNumberAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/ChildrenNumberAggregatorTest.php index 93184a2e3..540e10e03 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/ChildrenNumberAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/ChildrenNumberAggregatorTest.php @@ -30,7 +30,7 @@ final class ChildrenNumberAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\ChildrenNumberAggregator::class); + $this->aggregator = self::getContainer()->get(ChildrenNumberAggregator::class); } public function getAggregator(): ChildrenNumberAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/CompositionAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/CompositionAggregatorTest.php index 1896c2b51..5510827d1 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/CompositionAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/HouseholdAggregators/CompositionAggregatorTest.php @@ -30,7 +30,7 @@ final class CompositionAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\HouseholdAggregators\CompositionAggregator::class); + $this->aggregator = self::getContainer()->get(CompositionAggregator::class); } public function getAggregator(): CompositionAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/AgeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/AgeAggregatorTest.php index 51e34c179..8129ccbcc 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/AgeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/AgeAggregatorTest.php @@ -30,7 +30,7 @@ final class AgeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\AgeAggregator::class); + $this->aggregator = self::getContainer()->get(AgeAggregator::class); } public function getAggregator(): AgeAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/CountryOfBirthAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/CountryOfBirthAggregatorTest.php index 2fb5e7dde..8e57b3de3 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/CountryOfBirthAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/CountryOfBirthAggregatorTest.php @@ -29,7 +29,7 @@ final class CountryOfBirthAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\CountryOfBirthAggregator::class); + $this->aggregator = self::getContainer()->get(CountryOfBirthAggregator::class); } public function getAggregator(): CountryOfBirthAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/GenderAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/GenderAggregatorTest.php index f14106d42..7448aecfd 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/GenderAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/GenderAggregatorTest.php @@ -29,7 +29,7 @@ final class GenderAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\GenderAggregator::class); + $this->aggregator = self::getContainer()->get(GenderAggregator::class); } public function getAggregator(): GenderAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/HouseholdPositionAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/HouseholdPositionAggregatorTest.php index 8c5348704..2bf01cfdb 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/HouseholdPositionAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/HouseholdPositionAggregatorTest.php @@ -32,7 +32,7 @@ final class HouseholdPositionAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\HouseholdPositionAggregator::class); + $this->aggregator = self::getContainer()->get(HouseholdPositionAggregator::class); } public function getAggregator(): HouseholdPositionAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/MaritalStatusAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/MaritalStatusAggregatorTest.php index c2b44da3e..3ffdd04e1 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/MaritalStatusAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/MaritalStatusAggregatorTest.php @@ -29,7 +29,7 @@ final class MaritalStatusAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\MaritalStatusAggregator::class); + $this->aggregator = self::getContainer()->get(MaritalStatusAggregator::class); } public function getAggregator(): MaritalStatusAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/NationalityAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/NationalityAggregatorTest.php index 14abc10d1..c589de34d 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/NationalityAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/PersonAggregators/NationalityAggregatorTest.php @@ -29,7 +29,7 @@ final class NationalityAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\PersonAggregators\NationalityAggregator::class); + $this->aggregator = self::getContainer()->get(NationalityAggregator::class); } public function getAggregator(): NationalityAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ActionTypeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ActionTypeAggregatorTest.php index 40d2aba84..c4f7d6d04 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ActionTypeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ActionTypeAggregatorTest.php @@ -29,7 +29,7 @@ final class ActionTypeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ActionTypeAggregator::class); + $this->aggregator = self::getContainer()->get(ActionTypeAggregator::class); } public function getAggregator(): ActionTypeAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalAggregatorTest.php index 669478160..0f0e21a87 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalAggregatorTest.php @@ -29,7 +29,7 @@ final class GoalAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\GoalAggregator::class); + $this->aggregator = self::getContainer()->get(GoalAggregator::class); } public function getAggregator(): GoalAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalResultAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalResultAggregatorTest.php index 4f8659736..86d38740d 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalResultAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/GoalResultAggregatorTest.php @@ -29,7 +29,7 @@ final class GoalResultAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\GoalResultAggregator::class); + $this->aggregator = self::getContainer()->get(GoalResultAggregator::class); } public function getAggregator(): GoalResultAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/JobAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/JobAggregatorTest.php index ef3471f6f..d87505240 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/JobAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/JobAggregatorTest.php @@ -29,7 +29,7 @@ final class JobAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\JobAggregator::class); + $this->aggregator = self::getContainer()->get(JobAggregator::class); } public function getAggregator(): JobAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ResultAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ResultAggregatorTest.php index 17be633ba..37a73e723 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ResultAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ResultAggregatorTest.php @@ -29,7 +29,7 @@ final class ResultAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ResultAggregator::class); + $this->aggregator = self::getContainer()->get(ResultAggregator::class); } public function getAggregator(): ResultAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ScopeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ScopeAggregatorTest.php index 6b8acae17..2517e3414 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ScopeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/SocialWorkAggregators/ScopeAggregatorTest.php @@ -29,7 +29,7 @@ final class ScopeAggregatorTest extends AbstractAggregatorTest { self::bootKernel(); - $this->aggregator = self::getContainer()->get(\Chill\PersonBundle\Export\Aggregator\SocialWorkAggregators\ScopeAggregator::class); + $this->aggregator = self::getContainer()->get(ScopeAggregator::class); } public function getAggregator(): ScopeAggregator diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/StatAccompanyingCourseDurationTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/StatAccompanyingCourseDurationTest.php index 7ee1bb5c8..9133b739e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/StatAccompanyingCourseDurationTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/StatAccompanyingCourseDurationTest.php @@ -31,7 +31,7 @@ final class StatAccompanyingCourseDurationTest extends AbstractExportTest { self::bootKernel(); - $this->export = self::getContainer()->get(\Chill\PersonBundle\Export\Export\StatAccompanyingCourseDuration::class); + $this->export = self::getContainer()->get(StatAccompanyingCourseDuration::class); } public function getExport() diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOnDateFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOnDateFilterTest.php index 5ae8ee4b3..b7768a81d 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOnDateFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOnDateFilterTest.php @@ -30,7 +30,7 @@ final class ActiveOnDateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOnDateFilter::class); + $this->filter = self::getContainer()->get(ActiveOnDateFilter::class); } public function getFilter(): ActiveOnDateFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOneDayBetweenDatesFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOneDayBetweenDatesFilterTest.php index d73338267..26cb25755 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOneDayBetweenDatesFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ActiveOneDayBetweenDatesFilterTest.php @@ -30,7 +30,7 @@ final class ActiveOneDayBetweenDatesFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ActiveOneDayBetweenDatesFilter::class); + $this->filter = self::getContainer()->get(ActiveOneDayBetweenDatesFilter::class); } public function getFilter(): ActiveOneDayBetweenDatesFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilterTest.php index ba142ff44..91136d108 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/AdministrativeLocationFilterTest.php @@ -29,7 +29,7 @@ final class AdministrativeLocationFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\AdministrativeLocationFilter::class); + $this->filter = self::getContainer()->get(AdministrativeLocationFilter::class); } public function getFilter(): AdministrativeLocationFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ClosingMotiveFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ClosingMotiveFilterTest.php index cdce957b0..65cc9eb98 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ClosingMotiveFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ClosingMotiveFilterTest.php @@ -30,7 +30,7 @@ final class ClosingMotiveFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ClosingMotiveFilter::class); + $this->filter = self::getContainer()->get(ClosingMotiveFilter::class); } public function getFilter(): ClosingMotiveFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ConfidentialFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ConfidentialFilterTest.php index 76bd4eeac..442d70a95 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ConfidentialFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/ConfidentialFilterTest.php @@ -28,7 +28,7 @@ final class ConfidentialFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\ConfidentialFilter::class); + $this->filter = self::getContainer()->get(ConfidentialFilter::class); } public function getFilter(): ConfidentialFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EmergencyFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EmergencyFilterTest.php index 6490cdb5b..763657b6a 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EmergencyFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EmergencyFilterTest.php @@ -28,7 +28,7 @@ final class EmergencyFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\EmergencyFilter::class); + $this->filter = self::getContainer()->get(EmergencyFilter::class); } public function getFilter(): EmergencyFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EvaluationFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EvaluationFilterTest.php index 8fdbf6150..41bd510e6 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EvaluationFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/EvaluationFilterTest.php @@ -29,7 +29,7 @@ final class EvaluationFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\EvaluationFilter::class); + $this->filter = self::getContainer()->get(EvaluationFilter::class); } public function getFilter(): EvaluationFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilterTest.php index fc14f45ea..df2f34eb9 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilterTest.php @@ -31,7 +31,7 @@ final class GeographicalUnitStatFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\GeographicalUnitStatFilter::class); + $this->filter = self::getContainer()->get(GeographicalUnitStatFilter::class); } public function getFilter(): GeographicalUnitStatFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/IntensityFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/IntensityFilterTest.php index 89412f719..8cc276315 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/IntensityFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/IntensityFilterTest.php @@ -29,7 +29,7 @@ final class IntensityFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\IntensityFilter::class); + $this->filter = self::getContainer()->get(IntensityFilter::class); } public function getFilter(): IntensityFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OpenBetweenDatesFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OpenBetweenDatesFilterTest.php index 99a2098a7..d009591af 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OpenBetweenDatesFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OpenBetweenDatesFilterTest.php @@ -30,7 +30,7 @@ final class OpenBetweenDatesFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\OpenBetweenDatesFilter::class); + $this->filter = self::getContainer()->get(OpenBetweenDatesFilter::class); } public function getFilter(): OpenBetweenDatesFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OriginFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OriginFilterTest.php index e8bd71fb6..a9d3559ee 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OriginFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/OriginFilterTest.php @@ -30,7 +30,7 @@ final class OriginFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\OriginFilter::class); + $this->filter = self::getContainer()->get(OriginFilter::class); } public function getFilter(): OriginFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/RequestorFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/RequestorFilterTest.php index 019c5b6e1..becb757e5 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/RequestorFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/RequestorFilterTest.php @@ -29,7 +29,7 @@ final class RequestorFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\RequestorFilter::class); + $this->filter = self::getContainer()->get(RequestorFilter::class); } public function getFilter(): RequestorFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialActionFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialActionFilterTest.php index f7771a3f9..42c1913a4 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialActionFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialActionFilterTest.php @@ -31,7 +31,7 @@ final class SocialActionFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\SocialActionFilter::class); + $this->filter = self::getContainer()->get(SocialActionFilter::class); } public function getFilter(): SocialActionFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialIssueFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialIssueFilterTest.php index 9a4affc3e..4ce4ea0ea 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialIssueFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingCourseFilters/SocialIssueFilterTest.php @@ -31,7 +31,7 @@ final class SocialIssueFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\AccompanyingCourseFilters\SocialIssueFilter::class); + $this->filter = self::getContainer()->get(SocialIssueFilter::class); } public function getFilter(): SocialIssueFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/EvaluationTypeFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/EvaluationTypeFilterTest.php index 6e755a14e..0c56008f1 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/EvaluationTypeFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/EvaluationTypeFilterTest.php @@ -30,7 +30,7 @@ final class EvaluationTypeFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\EvaluationFilters\EvaluationTypeFilter::class); + $this->filter = self::getContainer()->get(EvaluationTypeFilter::class); } public function getFilter(): EvaluationTypeFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/MaxDateFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/MaxDateFilterTest.php index dbea286d5..cc5cc9f35 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/MaxDateFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/EvaluationFilters/MaxDateFilterTest.php @@ -29,7 +29,7 @@ final class MaxDateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\EvaluationFilters\MaxDateFilter::class); + $this->filter = self::getContainer()->get(MaxDateFilter::class); } public function getFilter(): MaxDateFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/HouseholdFilters/CompositionFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/HouseholdFilters/CompositionFilterTest.php index 75d6384b8..c66ac47e9 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/HouseholdFilters/CompositionFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/HouseholdFilters/CompositionFilterTest.php @@ -31,7 +31,7 @@ final class CompositionFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\HouseholdFilters\CompositionFilter::class); + $this->filter = self::getContainer()->get(CompositionFilter::class); } public function getFilter(): CompositionFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/AgeFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/AgeFilterTest.php index a59c5f7d4..eef288f25 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/AgeFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/AgeFilterTest.php @@ -30,7 +30,7 @@ final class AgeFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\AgeFilter::class); + $this->filter = self::getContainer()->get(AgeFilter::class); } public function getFilter(): AgeFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/BirthdateFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/BirthdateFilterTest.php index 983fffd7f..864611b16 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/BirthdateFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/BirthdateFilterTest.php @@ -30,7 +30,7 @@ final class BirthdateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\BirthdateFilter::class); + $this->filter = self::getContainer()->get(BirthdateFilter::class); } public function getFilter(): BirthdateFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeadOrAliveFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeadOrAliveFilterTest.php index bd3bd6041..507a677ba 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeadOrAliveFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeadOrAliveFilterTest.php @@ -30,7 +30,7 @@ final class DeadOrAliveFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\DeadOrAliveFilter::class); + $this->filter = self::getContainer()->get(DeadOrAliveFilter::class); } public function getFilter(): DeadOrAliveFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeathdateFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeathdateFilterTest.php index 425033cdc..b5fc18e86 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeathdateFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/DeathdateFilterTest.php @@ -30,7 +30,7 @@ final class DeathdateFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\DeathdateFilter::class); + $this->filter = self::getContainer()->get(DeathdateFilter::class); } public function getFilter(): DeathdateFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/GenderFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/GenderFilterTest.php index 2dee81ed6..565898ffd 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/GenderFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/GenderFilterTest.php @@ -29,7 +29,7 @@ final class GenderFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\GenderFilter::class); + $this->filter = self::getContainer()->get(GenderFilter::class); } public function getFilter(): GenderFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/MaritalStatusFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/MaritalStatusFilterTest.php index 571dca13c..8d3255bb8 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/MaritalStatusFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/MaritalStatusFilterTest.php @@ -30,7 +30,7 @@ final class MaritalStatusFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\MaritalStatusFilter::class); + $this->filter = self::getContainer()->get(MaritalStatusFilter::class); } public function getFilter(): MaritalStatusFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/NationalityFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/NationalityFilterTest.php index 9496d1f2c..be167348e 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/NationalityFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/NationalityFilterTest.php @@ -30,7 +30,7 @@ final class NationalityFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\NationalityFilter::class); + $this->filter = self::getContainer()->get(NationalityFilter::class); } public function getFilter(): NationalityFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtThirdpartyFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtThirdpartyFilterTest.php index fabd743ce..56fb3ec47 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtThirdpartyFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtThirdpartyFilterTest.php @@ -33,7 +33,7 @@ final class ResidentialAddressAtThirdpartyFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\ResidentialAddressAtThirdpartyFilter::class); + $this->filter = self::getContainer()->get(ResidentialAddressAtThirdpartyFilter::class); } public function getFilter(): ResidentialAddressAtThirdpartyFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtUserFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtUserFilterTest.php index e7ef4e9e7..61447fe82 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtUserFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/PersonFilters/ResidentialAddressAtUserFilterTest.php @@ -31,7 +31,7 @@ final class ResidentialAddressAtUserFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\PersonFilters\ResidentialAddressAtUserFilter::class); + $this->filter = self::getContainer()->get(ResidentialAddressAtUserFilter::class); } public function getFilter(): ResidentialAddressAtUserFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/JobFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/JobFilterTest.php index d630e0890..c303796cf 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/JobFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/JobFilterTest.php @@ -31,7 +31,7 @@ final class JobFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\SocialWorkFilters\JobFilter::class); + $this->filter = self::getContainer()->get(JobFilter::class); } public function getFilter(): JobFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ReferrerFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ReferrerFilterTest.php index 5ddefc606..7f33e19b1 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ReferrerFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ReferrerFilterTest.php @@ -31,7 +31,7 @@ final class ReferrerFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\SocialWorkFilters\ReferrerFilter::class); + $this->filter = self::getContainer()->get(ReferrerFilter::class); } public function getFilter(): ReferrerFilter diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ScopeFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ScopeFilterTest.php index ad4fd94bb..c74aae56f 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ScopeFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/SocialWorkFilters/ScopeFilterTest.php @@ -30,7 +30,7 @@ final class ScopeFilterTest extends AbstractFilterTest { self::bootKernel(); - $this->filter = self::getContainer()->get(\Chill\PersonBundle\Export\Filter\SocialWorkFilters\ScopeFilter::class); + $this->filter = self::getContainer()->get(ScopeFilter::class); } public function getFilter(): ScopeFilter diff --git a/src/Bundle/ChillReportBundle/Controller/ReportController.php b/src/Bundle/ChillReportBundle/Controller/ReportController.php index 64e12cf22..2e20464cd 100644 --- a/src/Bundle/ChillReportBundle/Controller/ReportController.php +++ b/src/Bundle/ChillReportBundle/Controller/ReportController.php @@ -36,13 +36,13 @@ class ReportController extends AbstractController * ReportController constructor. */ public function __construct( - private readonly EventDispatcherInterface $eventDispatcher, - private readonly AuthorizationHelper $authorizationHelper, - private readonly PaginatorFactory $paginator, - private readonly TranslatorInterface $translator, + private readonly EventDispatcherInterface $eventDispatcher, + private readonly AuthorizationHelper $authorizationHelper, + private readonly PaginatorFactory $paginator, + private readonly TranslatorInterface $translator, private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, - private readonly TokenStorage $tokenStorage, - private readonly \Symfony\Component\Form\FormFactoryInterface $formFactory, + private readonly TokenStorage $tokenStorage, + private readonly \Symfony\Component\Form\FormFactoryInterface $formFactory, ) {} /** diff --git a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php index 361c771f7..9a14b255e 100644 --- a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php +++ b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php @@ -22,9 +22,7 @@ class CountNotificationTask implements NotificationCounterInterface { final public const string CACHE_KEY = 'chill_task.count_notifications.user.%d.%s'; - public function __construct(protected SingleTaskRepository $singleTaskRepository, protected CacheItemPoolInterface $cachePool) - { - } + public function __construct(protected SingleTaskRepository $singleTaskRepository, protected CacheItemPoolInterface $cachePool) {} public function addNotification(UserInterface $u): int {