diff --git a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php index cbfb93400..f248c6559 100644 --- a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php +++ b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php @@ -68,7 +68,7 @@ final class ActivityController extends AbstractController private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly PaginatorFactory $paginatorFactory, - private readonly ChillSecurity $security + private readonly ChillSecurity $security, ) {} /** diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityReasonAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityReasonAggregator.php index 33090f297..ad3937a6e 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityReasonAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityReasonAggregator.php @@ -28,7 +28,7 @@ class ActivityReasonAggregator implements AggregatorInterface, ExportElementVali public function __construct( protected ActivityReasonCategoryRepository $activityReasonCategoryRepository, protected ActivityReasonRepository $activityReasonRepository, - protected TranslatableStringHelper $translatableStringHelper + protected TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php index 3628206ec..b90c2b0cc 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersJobAggregator.php @@ -26,7 +26,7 @@ class ActivityUsersJobAggregator implements AggregatorInterface public function __construct( private readonly UserJobRepositoryInterface $userJobRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php index bffce629f..a93a2a875 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/ActivityUsersScopeAggregator.php @@ -26,7 +26,7 @@ class ActivityUsersScopeAggregator implements AggregatorInterface public function __construct( private readonly ScopeRepositoryInterface $scopeRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorJobAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorJobAggregator.php index d57670e7f..ef8dd8c50 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorJobAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorJobAggregator.php @@ -26,7 +26,7 @@ class CreatorJobAggregator implements AggregatorInterface public function __construct( private readonly UserJobRepositoryInterface $userJobRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php index 6641f0807..ddf90dfbc 100644 --- a/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php +++ b/src/Bundle/ChillActivityBundle/Export/Aggregator/CreatorScopeAggregator.php @@ -26,7 +26,7 @@ class CreatorScopeAggregator implements AggregatorInterface public function __construct( private readonly ScopeRepository $scopeRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Export/LinkedToPerson/StatActivityDuration.php b/src/Bundle/ChillActivityBundle/Export/Export/LinkedToPerson/StatActivityDuration.php index 3cdadac67..547dbf6bc 100644 --- a/src/Bundle/ChillActivityBundle/Export/Export/LinkedToPerson/StatActivityDuration.php +++ b/src/Bundle/ChillActivityBundle/Export/Export/LinkedToPerson/StatActivityDuration.php @@ -42,7 +42,7 @@ class StatActivityDuration implements ExportInterface, GroupedExportInterface /** * The action for this report. */ - protected string $action = 'sum' + protected string $action = 'sum', ) { $this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center']; } diff --git a/src/Bundle/ChillActivityBundle/Export/Export/ListActivityHelper.php b/src/Bundle/ChillActivityBundle/Export/Export/ListActivityHelper.php index 15137b013..dd817e7ab 100644 --- a/src/Bundle/ChillActivityBundle/Export/Export/ListActivityHelper.php +++ b/src/Bundle/ChillActivityBundle/Export/Export/ListActivityHelper.php @@ -39,7 +39,7 @@ class ListActivityHelper private readonly TranslatorInterface $translator, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringExportLabelHelper $translatableStringLabelHelper, - private readonly UserHelper $userHelper + private readonly UserHelper $userHelper, ) {} public function addSelect(QueryBuilder $qb): void diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/ActivityPresenceFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/ActivityPresenceFilter.php index 201b9f810..c9eab9066 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/ActivityPresenceFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/ActivityPresenceFilter.php @@ -25,7 +25,7 @@ final readonly class ActivityPresenceFilter implements FilterInterface { public function __construct( private TranslatableStringHelperInterface $translatableStringHelper, - private TranslatorInterface $translator + private TranslatorInterface $translator, ) {} public function getTitle() diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/ActivityTypeFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/ActivityTypeFilter.php index ae47146df..96e42c3e6 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/ActivityTypeFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/ActivityTypeFilter.php @@ -26,7 +26,7 @@ class ActivityTypeFilter implements ExportElementValidatedInterface, FilterInter { public function __construct( protected TranslatableStringHelperInterface $translatableStringHelper, - protected ActivityTypeRepositoryInterface $activityTypeRepository + protected ActivityTypeRepositoryInterface $activityTypeRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php index f6d23ea78..cf2787359 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/UsersJobFilter.php @@ -29,7 +29,7 @@ class UsersJobFilter implements FilterInterface public function __construct( private readonly TranslatableStringHelperInterface $translatableStringHelper, - private readonly UserJobRepositoryInterface $userJobRepository + private readonly UserJobRepositoryInterface $userJobRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php b/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php index 4ce9c845a..bbf1630c4 100644 --- a/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php +++ b/src/Bundle/ChillActivityBundle/Export/Filter/UsersScopeFilter.php @@ -29,7 +29,7 @@ class UsersScopeFilter implements FilterInterface public function __construct( private readonly ScopeRepositoryInterface $scopeRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillActivityBundle/Form/ActivityType.php b/src/Bundle/ChillActivityBundle/Form/ActivityType.php index 9e2358e8b..28c607acd 100644 --- a/src/Bundle/ChillActivityBundle/Form/ActivityType.php +++ b/src/Bundle/ChillActivityBundle/Form/ActivityType.php @@ -59,7 +59,7 @@ class ActivityType extends AbstractType protected TranslatableStringHelper $translatableStringHelper, protected array $timeChoices, protected SocialIssueRender $socialIssueRender, - protected SocialActionRender $socialActionRender + protected SocialActionRender $socialActionRender, ) { if (!$tokenStorage->getToken()->getUser() instanceof User) { throw new \RuntimeException('you should have a valid user'); diff --git a/src/Bundle/ChillActivityBundle/Form/Type/PickActivityReasonType.php b/src/Bundle/ChillActivityBundle/Form/Type/PickActivityReasonType.php index be1e372f1..ca411b6ac 100644 --- a/src/Bundle/ChillActivityBundle/Form/Type/PickActivityReasonType.php +++ b/src/Bundle/ChillActivityBundle/Form/Type/PickActivityReasonType.php @@ -27,7 +27,7 @@ class PickActivityReasonType extends AbstractType public function __construct( private readonly ActivityReasonRepository $activityReasonRepository, private readonly ActivityReasonRender $reasonRender, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function configureOptions(OptionsResolver $resolver) diff --git a/src/Bundle/ChillActivityBundle/Repository/ActivityDocumentACLAwareRepository.php b/src/Bundle/ChillActivityBundle/Repository/ActivityDocumentACLAwareRepository.php index c0fd359f1..f57da1a36 100644 --- a/src/Bundle/ChillActivityBundle/Repository/ActivityDocumentACLAwareRepository.php +++ b/src/Bundle/ChillActivityBundle/Repository/ActivityDocumentACLAwareRepository.php @@ -32,7 +32,7 @@ final readonly class ActivityDocumentACLAwareRepository implements ActivityDocum private EntityManagerInterface $em, private CenterResolverManagerInterface $centerResolverManager, private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser, - private Security $security + private Security $security, ) {} public function buildFetchQueryActivityDocumentLinkedToPersonFromPersonContext(Person $person, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null): FetchQueryInterface diff --git a/src/Bundle/ChillActivityBundle/Repository/ActivityReasonRepository.php b/src/Bundle/ChillActivityBundle/Repository/ActivityReasonRepository.php index 47a7b35e8..7943c0fb3 100644 --- a/src/Bundle/ChillActivityBundle/Repository/ActivityReasonRepository.php +++ b/src/Bundle/ChillActivityBundle/Repository/ActivityReasonRepository.php @@ -25,7 +25,7 @@ class ActivityReasonRepository extends ServiceEntityRepository { public function __construct( ManagerRegistry $registry, - private readonly RequestStack $requestStack + private readonly RequestStack $requestStack, ) { parent::__construct($registry, ActivityReason::class); } diff --git a/src/Bundle/ChillActivityBundle/Security/Authorization/ActivityVoter.php b/src/Bundle/ChillActivityBundle/Security/Authorization/ActivityVoter.php index dd51a1f55..7a73a709c 100644 --- a/src/Bundle/ChillActivityBundle/Security/Authorization/ActivityVoter.php +++ b/src/Bundle/ChillActivityBundle/Security/Authorization/ActivityVoter.php @@ -75,7 +75,7 @@ class ActivityVoter extends AbstractChillVoter implements ProvideRoleHierarchyIn public function __construct( protected Security $security, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory->generate(self::class) ->addCheckFor(Person::class, [self::SEE, self::CREATE]) diff --git a/src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php b/src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php index 46e466ae1..cd0ca2a4f 100644 --- a/src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php +++ b/src/Bundle/ChillActivityBundle/Service/DocGenerator/ActivityContext.php @@ -50,7 +50,7 @@ class ActivityContext implements private readonly TranslatorInterface $translator, private readonly BaseContextData $baseContextData, private readonly ThirdPartyRender $thirdPartyRender, - private readonly ThirdPartyRepository $thirdPartyRepository + private readonly ThirdPartyRepository $thirdPartyRepository, ) {} public function adminFormReverseTransform(array $data): array diff --git a/src/Bundle/ChillActivityBundle/Service/DocGenerator/ListActivitiesByAccompanyingPeriodContext.php b/src/Bundle/ChillActivityBundle/Service/DocGenerator/ListActivitiesByAccompanyingPeriodContext.php index a2fa996a6..56b9de408 100644 --- a/src/Bundle/ChillActivityBundle/Service/DocGenerator/ListActivitiesByAccompanyingPeriodContext.php +++ b/src/Bundle/ChillActivityBundle/Service/DocGenerator/ListActivitiesByAccompanyingPeriodContext.php @@ -56,7 +56,7 @@ class ListActivitiesByAccompanyingPeriodContext implements private readonly SocialIssueRepository $socialIssueRepository, private readonly ThirdPartyRepository $thirdPartyRepository, private readonly TranslatableStringHelperInterface $translatableStringHelper, - private readonly UserRepository $userRepository + private readonly UserRepository $userRepository, ) {} public function adminFormReverseTransform(array $data): array diff --git a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php index 014c3ae9f..750758f72 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php @@ -76,7 +76,7 @@ final class TranslatableActivityReasonTest extends TypeTestCase */ protected function getTranslatableStringHelper( $locale = 'en', - $fallbackLocale = 'en' + $fallbackLocale = 'en', ) { $prophet = new \Prophecy\Prophet(); $requestStack = $prophet->prophesize(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php index e3ab7b60a..0a9e7d8ba 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php @@ -138,7 +138,7 @@ final class ActivityVoterTest extends KernelTestCase Scope $scope, Center $center, $attribute, - $message + $message, ) { $token = $this->prepareToken($user); $activity = $this->prepareActivity($scope, $this->preparePerson($center)); diff --git a/src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php b/src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php index 23a75e9fe..5fe56bbce 100644 --- a/src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php +++ b/src/Bundle/ChillActivityBundle/Timeline/TimelineActivityProvider.php @@ -32,7 +32,7 @@ class TimelineActivityProvider implements TimelineProviderInterface protected EntityManagerInterface $em, protected AuthorizationHelperInterface $helper, TokenStorageInterface $storage, - protected ActivityACLAwareRepository $aclAwareRepository + protected ActivityACLAwareRepository $aclAwareRepository, ) { if (!$storage->getToken()->getUser() instanceof User) { throw new \RuntimeException('A user should be authenticated !'); diff --git a/src/Bundle/ChillAsideActivityBundle/src/Controller/AsideActivityController.php b/src/Bundle/ChillAsideActivityBundle/src/Controller/AsideActivityController.php index ffeab7630..fbc9338d6 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Controller/AsideActivityController.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Controller/AsideActivityController.php @@ -25,7 +25,7 @@ final class AsideActivityController extends CRUDController { public function __construct( private readonly AsideActivityCategoryRepository $categoryRepository, - private readonly Security $security + private readonly Security $security, ) {} public function createEntity(string $action, Request $request): object @@ -76,7 +76,7 @@ final class AsideActivityController extends CRUDController string $action, $query, Request $request, - PaginatorInterface $paginator + PaginatorInterface $paginator, ) { if ('index' === $action) { return $query->orderBy('e.date', 'DESC'); diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByActivityTypeAggregator.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByActivityTypeAggregator.php index 4271ae118..cc311d470 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByActivityTypeAggregator.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByActivityTypeAggregator.php @@ -22,7 +22,7 @@ class ByActivityTypeAggregator implements AggregatorInterface { public function __construct( private readonly AsideActivityCategoryRepository $asideActivityCategoryRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php index c3883b18a..58d5584b4 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserJobAggregator.php @@ -26,7 +26,7 @@ class ByUserJobAggregator implements AggregatorInterface public function __construct( private readonly UserJobRepositoryInterface $userJobRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php index a99d2b75f..a0277a37b 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Aggregator/ByUserScopeAggregator.php @@ -26,7 +26,7 @@ class ByUserScopeAggregator implements AggregatorInterface public function __construct( private readonly ScopeRepositoryInterface $scopeRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php index 33155c62f..816af5771 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php @@ -41,7 +41,7 @@ final readonly class ListAsideActivity implements ListInterface, GroupedExportIn private AsideActivityCategoryRepository $asideActivityCategoryRepository, private CategoryRender $categoryRender, private LocationRepository $locationRepository, - private TranslatableStringHelperInterface $translatableStringHelper + private TranslatableStringHelperInterface $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder) {} diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByActivityTypeFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByActivityTypeFilter.php index 708b12ef1..bfb8fe0b1 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByActivityTypeFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByActivityTypeFilter.php @@ -27,7 +27,7 @@ class ByActivityTypeFilter implements FilterInterface public function __construct( private readonly CategoryRender $categoryRender, private readonly TranslatableStringHelperInterface $translatableStringHelper, - private readonly AsideActivityCategoryRepository $asideActivityTypeRepository + private readonly AsideActivityCategoryRepository $asideActivityTypeRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByLocationFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByLocationFilter.php index 6de002606..23c141a06 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByLocationFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByLocationFilter.php @@ -24,7 +24,7 @@ use Symfony\Component\Security\Core\Security; final readonly class ByLocationFilter implements FilterInterface { public function __construct( - private Security $security + private Security $security, ) {} public function getTitle(): string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php index ec2e3d220..551e91cd8 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserJobFilter.php @@ -29,7 +29,7 @@ class ByUserJobFilter implements FilterInterface public function __construct( private readonly TranslatableStringHelperInterface $translatableStringHelper, - private readonly UserJobRepositoryInterface $userJobRepository + private readonly UserJobRepositoryInterface $userJobRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php index 8f8d50462..5257495aa 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Export/Filter/ByUserScopeFilter.php @@ -29,7 +29,7 @@ class ByUserScopeFilter implements FilterInterface public function __construct( private readonly ScopeRepositoryInterface $scopeRepository, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillAsideActivityBundle/src/Menu/UserMenuBuilder.php b/src/Bundle/ChillAsideActivityBundle/src/Menu/UserMenuBuilder.php index 154556bca..540b1264a 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Menu/UserMenuBuilder.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Menu/UserMenuBuilder.php @@ -44,7 +44,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface CountNotificationTask $counter, TokenStorageInterface $tokenStorage, TranslatorInterface $translator, - AuthorizationCheckerInterface $authorizationChecker + AuthorizationCheckerInterface $authorizationChecker, ) { $this->counter = $counter; $this->tokenStorage = $tokenStorage; diff --git a/src/Bundle/ChillAsideActivityBundle/src/Security/AsideActivityVoter.php b/src/Bundle/ChillAsideActivityBundle/src/Security/AsideActivityVoter.php index e15abd439..7fe56e5e4 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Security/AsideActivityVoter.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Security/AsideActivityVoter.php @@ -26,7 +26,7 @@ class AsideActivityVoter extends AbstractChillVoter implements ProvideRoleHierar private readonly VoterHelperInterface $voterHelper; public function __construct( - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php b/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php index 1b76f25fa..80ee424b8 100644 --- a/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php +++ b/src/Bundle/ChillCalendarBundle/Command/SendTestShortMessageOnCalendarCommand.php @@ -47,7 +47,7 @@ class SendTestShortMessageOnCalendarCommand extends Command private readonly PhoneNumberHelperInterface $phoneNumberHelper, private readonly ShortMessageForCalendarBuilderInterface $messageForCalendarBuilder, private readonly ShortMessageTransporterInterface $transporter, - private readonly UserRepositoryInterface $userRepository + private readonly UserRepositoryInterface $userRepository, ) { parent::__construct('chill:calendar:test-send-short-message'); } diff --git a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php index e57d2743d..94db03b1f 100644 --- a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php +++ b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php @@ -59,7 +59,7 @@ class CalendarController extends AbstractController private readonly AccompanyingPeriodRepository $accompanyingPeriodRepository, private readonly UserRepositoryInterface $userRepository, private readonly TranslatorInterface $translator, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} /** diff --git a/src/Bundle/ChillCalendarBundle/Entity/CalendarDoc.php b/src/Bundle/ChillCalendarBundle/Entity/CalendarDoc.php index 90143231e..aff996095 100644 --- a/src/Bundle/ChillCalendarBundle/Entity/CalendarDoc.php +++ b/src/Bundle/ChillCalendarBundle/Entity/CalendarDoc.php @@ -47,7 +47,7 @@ class CalendarDoc implements TrackCreationInterface, TrackUpdateInterface Calendar $calendar, #[ORM\ManyToOne(targetEntity: StoredObject::class, cascade: ['persist'])] #[ORM\JoinColumn(nullable: false)] - private ?StoredObject $storedObject + private ?StoredObject $storedObject, ) { $this->setCalendar($calendar); $this->datetimeVersion = $calendar->getDateTimeVersion(); diff --git a/src/Bundle/ChillCalendarBundle/Export/Aggregator/JobAggregator.php b/src/Bundle/ChillCalendarBundle/Export/Aggregator/JobAggregator.php index 76cbe5cd8..1182ea374 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Aggregator/JobAggregator.php +++ b/src/Bundle/ChillCalendarBundle/Export/Aggregator/JobAggregator.php @@ -26,7 +26,7 @@ final readonly class JobAggregator implements AggregatorInterface public function __construct( private UserJobRepository $jobRepository, - private TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillCalendarBundle/Export/Aggregator/ScopeAggregator.php b/src/Bundle/ChillCalendarBundle/Export/Aggregator/ScopeAggregator.php index 4998f6d1f..ff24baa8c 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Aggregator/ScopeAggregator.php +++ b/src/Bundle/ChillCalendarBundle/Export/Aggregator/ScopeAggregator.php @@ -26,7 +26,7 @@ final readonly class ScopeAggregator implements AggregatorInterface public function __construct( private ScopeRepository $scopeRepository, - private TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php index 5543a453b..3c87397e4 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/JobFilter.php @@ -28,7 +28,7 @@ final readonly class JobFilter implements FilterInterface public function __construct( private TranslatableStringHelper $translatableStringHelper, - private UserJobRepositoryInterface $userJobRepository + private UserJobRepositoryInterface $userJobRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php index 2f46db892..3a1c5a35a 100644 --- a/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php +++ b/src/Bundle/ChillCalendarBundle/Export/Filter/ScopeFilter.php @@ -30,7 +30,7 @@ class ScopeFilter implements FilterInterface public function __construct( protected TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, - private readonly ScopeRepositoryInterface $scopeRepository + private readonly ScopeRepositoryInterface $scopeRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillCalendarBundle/Form/CalendarType.php b/src/Bundle/ChillCalendarBundle/Form/CalendarType.php index eec0b3f9f..eb1e1b5f2 100644 --- a/src/Bundle/ChillCalendarBundle/Form/CalendarType.php +++ b/src/Bundle/ChillCalendarBundle/Form/CalendarType.php @@ -37,7 +37,7 @@ class CalendarType extends AbstractType private readonly IdToUsersDataTransformer $idToUsersDataTransformer, private readonly IdToLocationDataTransformer $idToLocationDataTransformer, private readonly ThirdPartiesToIdDataTransformer $partiesToIdDataTransformer, - private readonly IdToCalendarRangeDataTransformer $calendarRangeDataTransformer + private readonly IdToCalendarRangeDataTransformer $calendarRangeDataTransformer, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillCalendarBundle/Messenger/Message/CalendarMessage.php b/src/Bundle/ChillCalendarBundle/Messenger/Message/CalendarMessage.php index 9bcd81c67..1476ed346 100644 --- a/src/Bundle/ChillCalendarBundle/Messenger/Message/CalendarMessage.php +++ b/src/Bundle/ChillCalendarBundle/Messenger/Message/CalendarMessage.php @@ -46,7 +46,7 @@ class CalendarMessage public function __construct( Calendar $calendar, private readonly string $action, - User $byUser + User $byUser, ) { $this->calendarId = $calendar->getId(); $this->byUserId = $byUser->getId(); diff --git a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSUserAbsenceReader.php b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSUserAbsenceReader.php index 4acc9de46..2c0e913f3 100644 --- a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSUserAbsenceReader.php +++ b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MSUserAbsenceReader.php @@ -59,7 +59,7 @@ final readonly class MSUserAbsenceReader implements MSUserAbsenceReaderInterface 'alwaysEnabled' => true, 'scheduled' => RemoteEventConverter::convertStringDateWithoutTimezone($automaticRepliesSettings['scheduledStartDateTime']['dateTime']) < $this->clock->now() && RemoteEventConverter::convertStringDateWithoutTimezone($automaticRepliesSettings['scheduledEndDateTime']['dateTime']) > $this->clock->now(), - default => throw new UserAbsenceSyncException('this status is not documented by Microsoft') + default => throw new UserAbsenceSyncException('this status is not documented by Microsoft'), }; } } diff --git a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MapCalendarToUser.php b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MapCalendarToUser.php index 5577adc2e..7b56fda34 100644 --- a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MapCalendarToUser.php +++ b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/MapCalendarToUser.php @@ -177,7 +177,7 @@ class MapCalendarToUser User $user, int $expiration, ?string $id = null, - ?string $secret = null + ?string $secret = null, ): void { $user->setAttributeByDomain(self::METADATA_KEY, self::EXPIRATION_SUBSCRIPTION_EVENT, $expiration); diff --git a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/RemoteEventConverter.php b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/RemoteEventConverter.php index 84797f6f1..2e2a8acaf 100644 --- a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/RemoteEventConverter.php +++ b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraph/RemoteEventConverter.php @@ -57,7 +57,7 @@ class RemoteEventConverter private readonly LocationConverter $locationConverter, private readonly LoggerInterface $logger, private readonly PersonRenderInterface $personRender, - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) { $this->defaultDateTimeZone = (new \DateTimeImmutable())->getTimezone(); $this->remoteDateTimeZone = self::getRemoteTimeZone(); diff --git a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraphRemoteCalendarConnector.php b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraphRemoteCalendarConnector.php index a85de21d3..8b95e1c74 100644 --- a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraphRemoteCalendarConnector.php +++ b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Connector/MSGraphRemoteCalendarConnector.php @@ -351,7 +351,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface [ 'id' => $id, 'lastModifiedDateTime' => $lastModified, - 'changeKey' => $changeKey + 'changeKey' => $changeKey, ] = $this->createOnRemote($eventData, $calendar->getMainUser(), 'calendar_'.$calendar->getId()); if (null === $id) { @@ -427,7 +427,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface [ 'id' => $id, 'lastModifiedDateTime' => $lastModified, - 'changeKey' => $changeKey + 'changeKey' => $changeKey, ] = $this->createOnRemote( $eventData, $calendarRange->getUser(), @@ -564,7 +564,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface [ 'id' => $id, 'lastModifiedDateTime' => $lastModified, - 'changeKey' => $changeKey + 'changeKey' => $changeKey, ] = $this->patchOnRemote( $calendar->getRemoteId(), $eventData, diff --git a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Model/RemoteEvent.php b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Model/RemoteEvent.php index 8da4e74d7..3d86da7f4 100644 --- a/src/Bundle/ChillCalendarBundle/RemoteCalendar/Model/RemoteEvent.php +++ b/src/Bundle/ChillCalendarBundle/RemoteCalendar/Model/RemoteEvent.php @@ -33,6 +33,6 @@ class RemoteEvent #[Serializer\Groups(['read'])] public \DateTimeImmutable $endDate, #[Serializer\Groups(['read'])] - public bool $isAllDay = false + public bool $isAllDay = false, ) {} } diff --git a/src/Bundle/ChillCalendarBundle/Repository/CalendarRangeRepository.php b/src/Bundle/ChillCalendarBundle/Repository/CalendarRangeRepository.php index d6e1ac8a5..33f2f5818 100644 --- a/src/Bundle/ChillCalendarBundle/Repository/CalendarRangeRepository.php +++ b/src/Bundle/ChillCalendarBundle/Repository/CalendarRangeRepository.php @@ -65,7 +65,7 @@ class CalendarRangeRepository implements ObjectRepository \DateTimeImmutable $from, \DateTimeImmutable $to, ?int $limit = null, - ?int $offset = null + ?int $offset = null, ): array { $qb = $this->buildQueryAvailableRangesForUser($user, $from, $to); diff --git a/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php b/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php index 087f5ea86..c45acd41f 100644 --- a/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php +++ b/src/Bundle/ChillCalendarBundle/Service/DocGenerator/CalendarContext.php @@ -40,7 +40,7 @@ final readonly class CalendarContext implements CalendarContextInterface private PersonRepository $personRepository, private ThirdPartyRender $thirdPartyRender, private ThirdPartyRepository $thirdPartyRepository, - private TranslatableStringHelperInterface $translatableStringHelper + private TranslatableStringHelperInterface $translatableStringHelper, ) {} public function adminFormReverseTransform(array $data): array diff --git a/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/AccompanyingPeriodCalendarGenericDocProvider.php b/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/AccompanyingPeriodCalendarGenericDocProvider.php index 7d4544b37..ce851a31f 100644 --- a/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/AccompanyingPeriodCalendarGenericDocProvider.php +++ b/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/AccompanyingPeriodCalendarGenericDocProvider.php @@ -37,7 +37,7 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen public function __construct( private Security $security, - private EntityManagerInterface $em + private EntityManagerInterface $em, ) {} /** diff --git a/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/PersonCalendarGenericDocProvider.php b/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/PersonCalendarGenericDocProvider.php index 5ca52744b..176f7978b 100644 --- a/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/PersonCalendarGenericDocProvider.php +++ b/src/Bundle/ChillCalendarBundle/Service/GenericDoc/Providers/PersonCalendarGenericDocProvider.php @@ -36,7 +36,7 @@ final readonly class PersonCalendarGenericDocProvider implements GenericDocForPe public function __construct( private Security $security, - private EntityManagerInterface $em + private EntityManagerInterface $em, ) {} private function addWhereClausesToQuery(FetchQuery $query, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null): FetchQuery diff --git a/src/Bundle/ChillCalendarBundle/Tests/Form/CalendarTypeTest.php b/src/Bundle/ChillCalendarBundle/Tests/Form/CalendarTypeTest.php index 0d1202b67..83366c848 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Form/CalendarTypeTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Form/CalendarTypeTest.php @@ -156,7 +156,7 @@ final class CalendarTypeTest extends TypeTestCase private function buildMultiToIdDataTransformer( string $classTransformer, - string $objClass + string $objClass, ) { $transformer = $this->prophesize($classTransformer); $transformer->transform(Argument::type('array')) @@ -195,7 +195,7 @@ final class CalendarTypeTest extends TypeTestCase private function buildSingleToIdDataTransformer( string $classTransformer, - string $class + string $class, ) { $transformer = $this->prophesize($classTransformer); $transformer->transform(Argument::type('object')) diff --git a/src/Bundle/ChillCalendarBundle/Tests/Service/DocGenerator/CalendarContextTest.php b/src/Bundle/ChillCalendarBundle/Tests/Service/DocGenerator/CalendarContextTest.php index c06872a66..8674a6b44 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Service/DocGenerator/CalendarContextTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Service/DocGenerator/CalendarContextTest.php @@ -203,7 +203,7 @@ final class CalendarContextTest extends TestCase private function buildCalendarContext( ?EntityManagerInterface $entityManager = null, - ?NormalizerInterface $normalizer = null + ?NormalizerInterface $normalizer = null, ): CalendarContext { $baseContext = $this->prophesize(BaseContextData::class); $baseContext->getData(null)->willReturn(['base_context' => 'data']); diff --git a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php index 24c531860..9fd474e24 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php +++ b/src/Bundle/ChillCustomFieldsBundle/Command/CreateFieldsOnGroupCommand.php @@ -44,7 +44,7 @@ class CreateFieldsOnGroupCommand extends Command private readonly EntityManager $entityManager, private readonly ValidatorInterface $validator, private $availableLanguages, - private $customizablesEntities + private $customizablesEntities, ) { parent::__construct(); } diff --git a/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php b/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php index 5d16269e6..7c1b0c5ea 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php +++ b/src/Bundle/ChillCustomFieldsBundle/Controller/CustomFieldsGroupController.php @@ -39,7 +39,7 @@ class CustomFieldsGroupController extends AbstractController public function __construct( private readonly CustomFieldProvider $customFieldProvider, private readonly TranslatorInterface $translator, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} /** diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php index a54e4c21f..e803742fe 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldChoice.php @@ -42,7 +42,7 @@ class CustomFieldChoice extends AbstractCustomField /** * @var TranslatableStringHelper Helper that find the string in current locale from an array of translation */ - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function allowOtherChoice(CustomField $cf) diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php index dac447930..4eee4e829 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldDate.php @@ -44,7 +44,7 @@ class CustomFieldDate extends AbstractCustomField public function __construct( private readonly Environment $templating, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder, CustomField $customField) diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php index e083b9b80..0f303fed6 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldNumber.php @@ -41,7 +41,7 @@ class CustomFieldNumber extends AbstractCustomField public function __construct( private readonly Environment $templating, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder, CustomField $customField) diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php index 17d8e95e7..00daee1c8 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldText.php @@ -28,7 +28,7 @@ class CustomFieldText extends AbstractCustomField public function __construct( private readonly Environment $templating, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} /** diff --git a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldTitle.php b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldTitle.php index 302e04350..75ecc0368 100644 --- a/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldTitle.php +++ b/src/Bundle/ChillCustomFieldsBundle/CustomFields/CustomFieldTitle.php @@ -31,7 +31,7 @@ class CustomFieldTitle extends AbstractCustomField /** * @var TranslatableStringHelper Helper that find the string in current locale from an array of translation */ - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder, CustomField $customField) diff --git a/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php b/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php index 8cf3ea182..13e349012 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php +++ b/src/Bundle/ChillCustomFieldsBundle/Form/CustomFieldsGroupType.php @@ -26,7 +26,7 @@ class CustomFieldsGroupType extends AbstractType public function __construct( private readonly array $customizableEntities, // TODO : add comment about this variable - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) {} // TODO : details about the function diff --git a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php index dfb70d1c8..7bcd6f6d5 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php +++ b/src/Bundle/ChillDocGeneratorBundle/Controller/DocGeneratorTemplateController.php @@ -48,7 +48,7 @@ final class DocGeneratorTemplateController extends AbstractController private readonly PaginatorFactory $paginatorFactory, private readonly EntityManagerInterface $entityManager, private readonly ClockInterface $clock, - private readonly ChillSecurity $security + private readonly ChillSecurity $security, ) {} #[Route(path: '{_locale}/admin/doc/gen/generate/test/from/{template}/for/{entityClassName}/{entityId}', name: 'chill_docgenerator_test_generate_from_template')] @@ -56,7 +56,7 @@ final class DocGeneratorTemplateController extends AbstractController DocGeneratorTemplate $template, string $entityClassName, int $entityId, - Request $request + Request $request, ): Response { return $this->generateDocFromTemplate( $template, @@ -71,7 +71,7 @@ final class DocGeneratorTemplateController extends AbstractController DocGeneratorTemplate $template, string $entityClassName, int $entityId, - Request $request + Request $request, ): Response { return $this->generateDocFromTemplate( $template, @@ -137,7 +137,7 @@ final class DocGeneratorTemplateController extends AbstractController DocGeneratorTemplate $template, int $entityId, Request $request, - bool $isTest + bool $isTest, ): Response { try { $context = $this->contextManager->getContextByDocGeneratorTemplate($template); diff --git a/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php b/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php index 1ee3f0ba1..4ce0ad139 100644 --- a/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php +++ b/src/Bundle/ChillDocGeneratorBundle/GeneratorDriver/RelatorioDriver.php @@ -28,7 +28,7 @@ final readonly class RelatorioDriver implements DriverInterface public function __construct( private HttpClientInterface $client, ParameterBagInterface $parameterBag, - private LoggerInterface $logger + private LoggerInterface $logger, ) { $this->url = $parameterBag->get('chill_doc_generator')['driver']['relatorio']['url']; } diff --git a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php index a19e783d1..e6cec30bb 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php +++ b/src/Bundle/ChillDocGeneratorBundle/Serializer/Normalizer/DocGenObjectNormalizer.php @@ -35,7 +35,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte public function __construct( private readonly ClassMetadataFactoryInterface $classMetadataFactory, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) { $this->propertyAccess = PropertyAccess::createPropertyAccessor(); } diff --git a/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php b/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php index 127d135bb..90dbb33a4 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php +++ b/src/Bundle/ChillDocGeneratorBundle/Service/Generator/Generator.php @@ -33,7 +33,7 @@ class Generator implements GeneratorInterface private readonly DriverInterface $driver, private readonly ManagerRegistry $objectManagerRegistry, private readonly LoggerInterface $logger, - private readonly StoredObjectManagerInterface $storedObjectManager + private readonly StoredObjectManagerInterface $storedObjectManager, ) {} public function generateDataDump( diff --git a/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/OnGenerationFails.php b/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/OnGenerationFails.php index e3491f339..b9d538a63 100644 --- a/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/OnGenerationFails.php +++ b/src/Bundle/ChillDocGeneratorBundle/Service/Messenger/OnGenerationFails.php @@ -39,7 +39,7 @@ final readonly class OnGenerationFails implements EventSubscriberInterface private MailerInterface $mailer, private StoredObjectRepositoryInterface $storedObjectRepository, private TranslatorInterface $translator, - private UserRepositoryInterface $userRepository + private UserRepositoryInterface $userRepository, ) {} public static function getSubscribedEvents() diff --git a/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php index ee5a6cc62..c7821e2dd 100644 --- a/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php +++ b/src/Bundle/ChillDocGeneratorBundle/tests/Service/Context/BaseContextDataTest.php @@ -56,7 +56,7 @@ final class BaseContextDataTest extends KernelTestCase } private function buildBaseContext( - ?NormalizerInterface $normalizer = null + ?NormalizerInterface $normalizer = null, ): BaseContextData { return new BaseContextData( $normalizer ?? self::getContainer()->get(NormalizerInterface::class) diff --git a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/OpenstackObjectStore/TempUrlOpenstackGenerator.php b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/OpenstackObjectStore/TempUrlOpenstackGenerator.php index e410529b4..6b221a107 100644 --- a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/OpenstackObjectStore/TempUrlOpenstackGenerator.php +++ b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/OpenstackObjectStore/TempUrlOpenstackGenerator.php @@ -140,7 +140,7 @@ final readonly class TempUrlOpenstackGenerator implements TempUrlGeneratorInterf { return match (str_ends_with($this->base_url, '/')) { true => $this->base_url.$relative_path, - false => $this->base_url.'/'.$relative_path + false => $this->base_url.'/'.$relative_path, }; } diff --git a/src/Bundle/ChillDocStoreBundle/AsyncUpload/TempUrlGeneratorInterface.php b/src/Bundle/ChillDocStoreBundle/AsyncUpload/TempUrlGeneratorInterface.php index 08ac9e062..d81de6f1f 100644 --- a/src/Bundle/ChillDocStoreBundle/AsyncUpload/TempUrlGeneratorInterface.php +++ b/src/Bundle/ChillDocStoreBundle/AsyncUpload/TempUrlGeneratorInterface.php @@ -16,7 +16,7 @@ interface TempUrlGeneratorInterface public function generatePost( ?int $expire_delay = null, ?int $submit_delay = null, - int $max_file_count = 1 + int $max_file_count = 1, ): SignedUrlPost; public function generate(string $method, string $object_name, ?int $expire_delay = null): SignedUrl; diff --git a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Templating/AsyncUploadExtension.php b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Templating/AsyncUploadExtension.php index e7c3e6cf0..8bece267b 100644 --- a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Templating/AsyncUploadExtension.php +++ b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Templating/AsyncUploadExtension.php @@ -25,7 +25,7 @@ class AsyncUploadExtension extends AbstractExtension { public function __construct( private readonly TempUrlGeneratorInterface $tempUrlGenerator, - private readonly UrlGeneratorInterface $routingUrlGenerator + private readonly UrlGeneratorInterface $routingUrlGenerator, ) {} public function getFilters() diff --git a/src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php b/src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php index a281fc663..018d6cb8f 100644 --- a/src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php +++ b/src/Bundle/ChillDocStoreBundle/Controller/DocumentAccompanyingCourseController.php @@ -35,7 +35,7 @@ class DocumentAccompanyingCourseController extends AbstractController protected TranslatorInterface $translator, protected EventDispatcherInterface $eventDispatcher, protected AuthorizationHelper $authorizationHelper, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[Route(path: '/{id}/delete', name: 'chill_docstore_accompanying_course_document_delete')] diff --git a/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php b/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php index ad58b6e0c..417c8c57e 100644 --- a/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php +++ b/src/Bundle/ChillDocStoreBundle/Controller/DocumentPersonController.php @@ -40,7 +40,7 @@ class DocumentPersonController extends AbstractController protected TranslatorInterface $translator, protected EventDispatcherInterface $eventDispatcher, protected AuthorizationHelper $authorizationHelper, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[Route(path: '/{id}/delete', name: 'chill_docstore_person_document_delete')] diff --git a/src/Bundle/ChillDocStoreBundle/Entity/DocumentCategory.php b/src/Bundle/ChillDocStoreBundle/Entity/DocumentCategory.php index bac09414a..37882c930 100644 --- a/src/Bundle/ChillDocStoreBundle/Entity/DocumentCategory.php +++ b/src/Bundle/ChillDocStoreBundle/Entity/DocumentCategory.php @@ -42,7 +42,7 @@ class DocumentCategory */ #[ORM\Id] #[ORM\Column(type: \Doctrine\DBAL\Types\Types::INTEGER, name: 'id_inside_bundle')] - private $idInsideBundle + private $idInsideBundle, ) {} public function getBundleId() // ::class BundleClass (FQDN) diff --git a/src/Bundle/ChillDocStoreBundle/Entity/StoredObject.php b/src/Bundle/ChillDocStoreBundle/Entity/StoredObject.php index 4472d2177..7e23c8b10 100644 --- a/src/Bundle/ChillDocStoreBundle/Entity/StoredObject.php +++ b/src/Bundle/ChillDocStoreBundle/Entity/StoredObject.php @@ -99,7 +99,7 @@ class StoredObject implements Document, TrackCreationInterface */ public function __construct( #[ORM\Column(type: \Doctrine\DBAL\Types\Types::TEXT, options: ['default' => 'ready'])] - private string $status = 'ready' + private string $status = 'ready', ) { $this->uuid = Uuid::uuid4(); } diff --git a/src/Bundle/ChillDocStoreBundle/Form/AccompanyingCourseDocumentType.php b/src/Bundle/ChillDocStoreBundle/Form/AccompanyingCourseDocumentType.php index 5d2096ca0..42711b01a 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/AccompanyingCourseDocumentType.php +++ b/src/Bundle/ChillDocStoreBundle/Form/AccompanyingCourseDocumentType.php @@ -27,7 +27,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver; final class AccompanyingCourseDocumentType extends AbstractType { public function __construct( - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillDocStoreBundle/Form/DataTransformer/StoredObjectDataTransformer.php b/src/Bundle/ChillDocStoreBundle/Form/DataTransformer/StoredObjectDataTransformer.php index e06d8d7cc..38c469c88 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/DataTransformer/StoredObjectDataTransformer.php +++ b/src/Bundle/ChillDocStoreBundle/Form/DataTransformer/StoredObjectDataTransformer.php @@ -20,7 +20,7 @@ use Symfony\Component\Serializer\SerializerInterface; class StoredObjectDataTransformer implements DataTransformerInterface { public function __construct( - private readonly SerializerInterface $serializer + private readonly SerializerInterface $serializer, ) {} public function transform(mixed $value): mixed diff --git a/src/Bundle/ChillDocStoreBundle/Form/Type/AsyncUploaderType.php b/src/Bundle/ChillDocStoreBundle/Form/Type/AsyncUploaderType.php index 58d4eebb1..cd87fa922 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/Type/AsyncUploaderType.php +++ b/src/Bundle/ChillDocStoreBundle/Form/Type/AsyncUploaderType.php @@ -55,7 +55,7 @@ class AsyncUploaderType extends AbstractType public function buildView( FormView $view, FormInterface $form, - array $options + array $options, ) { $view->vars['attr']['data-async-file-upload'] = true; $view->vars['attr']['data-generate-temp-url-post'] = $this diff --git a/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForAccompanyingPeriodProviderInterface.php b/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForAccompanyingPeriodProviderInterface.php index bffa19b53..82a3ba0e3 100644 --- a/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForAccompanyingPeriodProviderInterface.php +++ b/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForAccompanyingPeriodProviderInterface.php @@ -20,7 +20,7 @@ interface GenericDocForAccompanyingPeriodProviderInterface ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - ?string $origin = null + ?string $origin = null, ): FetchQueryInterface; /** diff --git a/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForPersonProviderInterface.php b/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForPersonProviderInterface.php index 264a1d8f2..f85fc763a 100644 --- a/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForPersonProviderInterface.php +++ b/src/Bundle/ChillDocStoreBundle/GenericDoc/GenericDocForPersonProviderInterface.php @@ -20,7 +20,7 @@ interface GenericDocForPersonProviderInterface ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - ?string $origin = null + ?string $origin = null, ): FetchQueryInterface; /** diff --git a/src/Bundle/ChillDocStoreBundle/GenericDoc/Manager.php b/src/Bundle/ChillDocStoreBundle/GenericDoc/Manager.php index a185ce9b6..bec331523 100644 --- a/src/Bundle/ChillDocStoreBundle/GenericDoc/Manager.php +++ b/src/Bundle/ChillDocStoreBundle/GenericDoc/Manager.php @@ -46,7 +46,7 @@ final readonly class Manager ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - array $places = [] + array $places = [], ): int { ['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($accompanyingPeriod, $startDate, $endDate, $content, $places); @@ -76,7 +76,7 @@ final readonly class Manager ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - array $places = [] + array $places = [], ): int { ['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($person, $startDate, $endDate, $content, $places); @@ -97,7 +97,7 @@ final readonly class Manager ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - array $places = [] + array $places = [], ): iterable { ['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($accompanyingPeriod, $startDate, $endDate, $content, $places); @@ -140,7 +140,7 @@ final readonly class Manager ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - array $places = [] + array $places = [], ): iterable { ['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($person, $startDate, $endDate, $content, $places); diff --git a/src/Bundle/ChillDocStoreBundle/GenericDoc/Providers/PersonDocumentGenericDocProvider.php b/src/Bundle/ChillDocStoreBundle/GenericDoc/Providers/PersonDocumentGenericDocProvider.php index 2b9239c74..e5c99b258 100644 --- a/src/Bundle/ChillDocStoreBundle/GenericDoc/Providers/PersonDocumentGenericDocProvider.php +++ b/src/Bundle/ChillDocStoreBundle/GenericDoc/Providers/PersonDocumentGenericDocProvider.php @@ -34,7 +34,7 @@ final readonly class PersonDocumentGenericDocProvider implements GenericDocForPe ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, ?string $content = null, - ?string $origin = null + ?string $origin = null, ): FetchQueryInterface { return $this->personDocumentACLAwareRepository->buildFetchQueryForPerson( $person, diff --git a/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepositoryInterface.php b/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepositoryInterface.php index f1bc70812..ef783a92e 100644 --- a/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentACLAwareRepositoryInterface.php @@ -31,13 +31,13 @@ interface PersonDocumentACLAwareRepositoryInterface Person $person, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, - ?string $content = null + ?string $content = null, ): FetchQueryInterface; public function buildFetchQueryForAccompanyingPeriod( AccompanyingPeriod $period, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, - ?string $content = null + ?string $content = null, ): FetchQueryInterface; } diff --git a/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentRepository.php b/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentRepository.php index f880c0d67..4b31f9a2d 100644 --- a/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentRepository.php +++ b/src/Bundle/ChillDocStoreBundle/Repository/PersonDocumentRepository.php @@ -24,7 +24,7 @@ readonly class PersonDocumentRepository implements ObjectRepository private EntityRepository $repository; public function __construct( - private EntityManagerInterface $entityManager + private EntityManagerInterface $entityManager, ) { $this->repository = $this->entityManager->getRepository($this->getClassName()); } diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php index 5febc7e42..bfa93548d 100644 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php +++ b/src/Bundle/ChillDocStoreBundle/Security/Authorization/AccompanyingCourseDocumentVoter.php @@ -40,7 +40,7 @@ class AccompanyingCourseDocumentVoter extends AbstractChillVoter implements Prov public function __construct( protected LoggerInterface $logger, protected Security $security, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php index 21c08e9fd..327581e31 100644 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php +++ b/src/Bundle/ChillDocStoreBundle/Security/Authorization/PersonDocumentVoter.php @@ -40,7 +40,7 @@ class PersonDocumentVoter extends AbstractChillVoter implements ProvideRoleHiera public function __construct( protected LoggerInterface $logger, protected Security $security, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoter.php b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoter.php index 2e253cf3c..d51015f04 100644 --- a/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoter.php +++ b/src/Bundle/ChillDocStoreBundle/Security/Authorization/StoredObjectVoter.php @@ -49,7 +49,7 @@ class StoredObjectVoter extends Voter return match ($askedRole) { StoredObjectRoleEnum::SEE => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization || StoredObjectRoleEnum::SEE === $tokenRoleAuthorization, - StoredObjectRoleEnum::EDIT => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization + StoredObjectRoleEnum::EDIT => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization, }; } } diff --git a/src/Bundle/ChillDocStoreBundle/Security/Guard/DavTokenAuthenticationEventSubscriber.php b/src/Bundle/ChillDocStoreBundle/Security/Guard/DavTokenAuthenticationEventSubscriber.php index 7b33c0eec..39da44792 100644 --- a/src/Bundle/ChillDocStoreBundle/Security/Guard/DavTokenAuthenticationEventSubscriber.php +++ b/src/Bundle/ChillDocStoreBundle/Security/Guard/DavTokenAuthenticationEventSubscriber.php @@ -43,7 +43,7 @@ class DavTokenAuthenticationEventSubscriber implements EventSubscriberInterface $token->setAttribute(self::ACTIONS, match ($payload['e']) { 0 => StoredObjectRoleEnum::SEE, 1 => StoredObjectRoleEnum::EDIT, - default => throw new \UnexpectedValueException('unsupported value for e parameter') + default => throw new \UnexpectedValueException('unsupported value for e parameter'), }); $token->setAttribute(self::STORED_OBJECT, $payload['so']); diff --git a/src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectNormalizer.php b/src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectNormalizer.php index f6eb5a1cb..566b60864 100644 --- a/src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectNormalizer.php +++ b/src/Bundle/ChillDocStoreBundle/Serializer/Normalizer/StoredObjectNormalizer.php @@ -32,7 +32,7 @@ final class StoredObjectNormalizer implements NormalizerInterface, NormalizerAwa public function __construct( private readonly JWTDavTokenProviderInterface $JWTDavTokenProvider, - private readonly UrlGeneratorInterface $urlGenerator + private readonly UrlGeneratorInterface $urlGenerator, ) {} public function normalize($object, ?string $format = null, array $context = []) diff --git a/src/Bundle/ChillDocStoreBundle/Service/StoredObjectManager.php b/src/Bundle/ChillDocStoreBundle/Service/StoredObjectManager.php index 7100ca821..038bac9e3 100644 --- a/src/Bundle/ChillDocStoreBundle/Service/StoredObjectManager.php +++ b/src/Bundle/ChillDocStoreBundle/Service/StoredObjectManager.php @@ -29,7 +29,7 @@ final class StoredObjectManager implements StoredObjectManagerInterface public function __construct( private readonly HttpClientInterface $client, - private readonly TempUrlGeneratorInterface $tempUrlGenerator + private readonly TempUrlGeneratorInterface $tempUrlGenerator, ) {} public function getLastModified(StoredObject $document): \DateTimeInterface diff --git a/src/Bundle/ChillDocStoreBundle/Tests/Repository/PersonDocumentACLAwareRepositoryTest.php b/src/Bundle/ChillDocStoreBundle/Tests/Repository/PersonDocumentACLAwareRepositoryTest.php index a6c8e591a..b5d030c35 100644 --- a/src/Bundle/ChillDocStoreBundle/Tests/Repository/PersonDocumentACLAwareRepositoryTest.php +++ b/src/Bundle/ChillDocStoreBundle/Tests/Repository/PersonDocumentACLAwareRepositoryTest.php @@ -94,7 +94,7 @@ class PersonDocumentACLAwareRepositoryTest extends KernelTestCase AccompanyingPeriod $period, ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, - ?string $content = null + ?string $content = null, ): void { $centerManager = $this->prophesize(CenterResolverManagerInterface::class); $centerManager->resolveCenters(Argument::type(Person::class)) diff --git a/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExistsValidator.php b/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExistsValidator.php index e5ccd2fdf..9c72a5b00 100644 --- a/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExistsValidator.php +++ b/src/Bundle/ChillDocStoreBundle/Validator/Constraints/AsyncFileExistsValidator.php @@ -27,7 +27,7 @@ final class AsyncFileExistsValidator extends ConstraintValidator { public function __construct( private readonly TempUrlGeneratorInterface $tempUrlGenerator, - private readonly HttpClientInterface $client + private readonly HttpClientInterface $client, ) {} public function validate($value, Constraint $constraint): void diff --git a/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php b/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php index 9d1b619f9..75fcea3c4 100644 --- a/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php +++ b/src/Bundle/ChillDocStoreBundle/Workflow/AccompanyingCourseDocumentWorkflowHandler.php @@ -29,7 +29,7 @@ class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandler */ public function __construct( EntityManagerInterface $em, - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) { $this->repository = $em->getRepository(AccompanyingCourseDocument::class); } diff --git a/src/Bundle/ChillEventBundle/Controller/EventController.php b/src/Bundle/ChillEventBundle/Controller/EventController.php index dc7da134c..b4f099769 100644 --- a/src/Bundle/ChillEventBundle/Controller/EventController.php +++ b/src/Bundle/ChillEventBundle/Controller/EventController.php @@ -58,7 +58,7 @@ final class EventController extends AbstractController private readonly TranslatorInterface $translator, private readonly PaginatorFactory $paginator, private readonly Security $security, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/event/{event_id}/delete', name: 'chill_event__event_delete', requirements: ['event_id' => '\d+'], methods: ['GET', 'POST', 'DELETE'])] diff --git a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php index 59501acd7..2449528de 100644 --- a/src/Bundle/ChillEventBundle/Controller/ParticipationController.php +++ b/src/Bundle/ChillEventBundle/Controller/ParticipationController.php @@ -41,7 +41,7 @@ final class ParticipationController extends AbstractController private readonly TranslatorInterface $translator, private readonly EventRepository $eventRepository, private readonly PersonRepository $personRepository, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[\Symfony\Component\Routing\Annotation\Route(path: '/{_locale}/event/participation/create', name: 'chill_event_participation_create')] @@ -545,7 +545,7 @@ final class ParticipationController extends AbstractController protected function handleRequest( Request $request, Participation $participation, - bool $multiple = false + bool $multiple = false, ): array|Participation { $em = $this->managerRegistry->getManager(); diff --git a/src/Bundle/ChillEventBundle/Export/Filter/EventTypeFilter.php b/src/Bundle/ChillEventBundle/Export/Filter/EventTypeFilter.php index 9e8855adf..4b64022ea 100644 --- a/src/Bundle/ChillEventBundle/Export/Filter/EventTypeFilter.php +++ b/src/Bundle/ChillEventBundle/Export/Filter/EventTypeFilter.php @@ -26,7 +26,7 @@ class EventTypeFilter implements ExportElementValidatedInterface, FilterInterfac { public function __construct( protected TranslatableStringHelperInterface $translatableStringHelper, - protected EventTypeRepository $eventTypeRepository + protected EventTypeRepository $eventTypeRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillEventBundle/Export/Filter/RoleFilter.php b/src/Bundle/ChillEventBundle/Export/Filter/RoleFilter.php index 791f07f7a..612cea84e 100644 --- a/src/Bundle/ChillEventBundle/Export/Filter/RoleFilter.php +++ b/src/Bundle/ChillEventBundle/Export/Filter/RoleFilter.php @@ -26,7 +26,7 @@ class RoleFilter implements ExportElementValidatedInterface, FilterInterface { public function __construct( protected TranslatableStringHelperInterface $translatableStringHelper, - protected RoleRepository $roleRepository + protected RoleRepository $roleRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php b/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php index 9aa001170..adf5cecad 100644 --- a/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php +++ b/src/Bundle/ChillEventBundle/Form/ChoiceLoader/EventChoiceLoader.php @@ -41,7 +41,7 @@ class EventChoiceLoader implements ChoiceLoaderInterface */ public function __construct( EntityRepository $eventRepository, - ?array $centers = null + ?array $centers = null, ) { $this->eventRepository = $eventRepository; diff --git a/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php b/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php index 9fcdbd85f..bcd0026c9 100644 --- a/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php +++ b/src/Bundle/ChillEventBundle/Form/Type/PickEventType.php @@ -42,7 +42,7 @@ final class PickEventType extends AbstractType private readonly AuthorizationHelperInterface $authorizationHelper, private readonly UrlGeneratorInterface $urlGenerator, private readonly TranslatorInterface $translator, - private readonly Security $security + private readonly Security $security, ) {} public function buildView(\Symfony\Component\Form\FormView $view, \Symfony\Component\Form\FormInterface $form, array $options) diff --git a/src/Bundle/ChillEventBundle/Form/Type/PickRoleType.php b/src/Bundle/ChillEventBundle/Form/Type/PickRoleType.php index c8d69c119..b9048e116 100644 --- a/src/Bundle/ChillEventBundle/Form/Type/PickRoleType.php +++ b/src/Bundle/ChillEventBundle/Form/Type/PickRoleType.php @@ -31,7 +31,7 @@ final class PickRoleType extends AbstractType public function __construct( private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatorInterface $translator, - private readonly RoleRepository $roleRepository + private readonly RoleRepository $roleRepository, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillEventBundle/Menu/PersonMenuBuilder.php b/src/Bundle/ChillEventBundle/Menu/PersonMenuBuilder.php index e14e4c979..788c6fac1 100644 --- a/src/Bundle/ChillEventBundle/Menu/PersonMenuBuilder.php +++ b/src/Bundle/ChillEventBundle/Menu/PersonMenuBuilder.php @@ -31,7 +31,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface public function __construct( AuthorizationCheckerInterface $authorizationChecker, - TranslatorInterface $translator + TranslatorInterface $translator, ) { $this->authorizationChecker = $authorizationChecker; $this->translator = $translator; diff --git a/src/Bundle/ChillEventBundle/Repository/EventTypeRepository.php b/src/Bundle/ChillEventBundle/Repository/EventTypeRepository.php index 28e5672ea..ce09f935e 100644 --- a/src/Bundle/ChillEventBundle/Repository/EventTypeRepository.php +++ b/src/Bundle/ChillEventBundle/Repository/EventTypeRepository.php @@ -25,7 +25,7 @@ final class EventTypeRepository extends ServiceEntityRepository public function __construct( ManagerRegistry $registry, private readonly EntityManagerInterface $entityManager, - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) { parent::__construct($registry, EventType::class); } diff --git a/src/Bundle/ChillEventBundle/Search/EventSearch.php b/src/Bundle/ChillEventBundle/Search/EventSearch.php index 57cb9e9c5..ad0e83bd3 100644 --- a/src/Bundle/ChillEventBundle/Search/EventSearch.php +++ b/src/Bundle/ChillEventBundle/Search/EventSearch.php @@ -42,7 +42,7 @@ class EventSearch extends AbstractSearch private readonly EventRepository $eventRepository, private readonly AuthorizationHelper $authorizationHelper, private readonly \Twig\Environment $templating, - private readonly PaginatorFactory $paginatorFactory + private readonly PaginatorFactory $paginatorFactory, ) {} public function getOrder() @@ -60,7 +60,7 @@ class EventSearch extends AbstractSearch $start = 0, $limit = 50, array $options = [], - $format = 'html' + $format = 'html', ) { $total = $this->count($terms); $paginator = $this->paginatorFactory->create($total); diff --git a/src/Bundle/ChillEventBundle/Security/EventVoter.php b/src/Bundle/ChillEventBundle/Security/EventVoter.php index e490e0518..29fcb6e9d 100644 --- a/src/Bundle/ChillEventBundle/Security/EventVoter.php +++ b/src/Bundle/ChillEventBundle/Security/EventVoter.php @@ -50,7 +50,7 @@ class EventVoter extends AbstractChillVoter implements ProvideRoleHierarchyInter public function __construct( private readonly AuthorizationHelper $authorizationHelper, private readonly LoggerInterface $logger, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php b/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php index 368a47cab..314337791 100644 --- a/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php +++ b/src/Bundle/ChillEventBundle/Security/ParticipationVoter.php @@ -47,7 +47,7 @@ class ParticipationVoter extends AbstractChillVoter implements ProvideRoleHierar public function __construct( private readonly AuthorizationHelper $authorizationHelper, private readonly LoggerInterface $logger, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php index a4dd546d6..e7ad5f2a4 100644 --- a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php +++ b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php @@ -480,7 +480,7 @@ final class ParticipationControllerTest extends WebTestCase */ protected function getRandomEventWithMultipleParticipations( $centerName = 'Center A', - $circleName = 'social' + $circleName = 'social', ) { $event = $this->getRandomEvent($centerName, $circleName); diff --git a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php index 9e35a6757..414b07c62 100644 --- a/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php +++ b/src/Bundle/ChillEventBundle/Timeline/TimelineEventProvider.php @@ -48,7 +48,7 @@ class TimelineEventProvider implements TimelineProviderInterface public function __construct( EntityManager $em, AuthorizationHelper $helper, - TokenStorageInterface $storage + TokenStorageInterface $storage, ) { $this->em = $em; $this->helper = $helper; @@ -153,7 +153,7 @@ class TimelineEventProvider implements TimelineProviderInterface private function getFromClause( ClassMetadata $metadataEvent, ClassMetadata $metadataParticipation, - ClassMetadata $metadataPerson + ClassMetadata $metadataPerson, ) { $eventParticipationMapping = $metadataParticipation->getAssociationMapping('event'); $participationPersonMapping = $metadataParticipation->getAssociationMapping('person'); @@ -181,7 +181,7 @@ class TimelineEventProvider implements TimelineProviderInterface ClassMetadata $metadataEvent, ClassMetadata $metadataParticipation, ClassMetadata $metadataPerson, - Person $person + Person $person, ) { $role = 'CHILL_EVENT_SEE'; diff --git a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php index 01ead1109..809b0461b 100644 --- a/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php +++ b/src/Bundle/ChillFranceTravailApiBundle/src/ApiHelper/ProcessRequestTrait.php @@ -34,7 +34,7 @@ trait ProcessRequestTrait Request $request, array $parameters, Client $client, - LoggerInterface $logger + LoggerInterface $logger, ) { return $this->handleRequestRecursive( $request, @@ -54,7 +54,7 @@ trait ProcessRequestTrait array $parameters, Client $client, LoggerInterface $logger, - $counter = 0 + $counter = 0, ) { try { return $client->send($request, $parameters); diff --git a/src/Bundle/ChillJobBundle/src/Form/ChoiceLoader/RomeAppellationChoiceLoader.php b/src/Bundle/ChillJobBundle/src/Form/ChoiceLoader/RomeAppellationChoiceLoader.php index 39ab23ae1..834ba6fc9 100644 --- a/src/Bundle/ChillJobBundle/src/Form/ChoiceLoader/RomeAppellationChoiceLoader.php +++ b/src/Bundle/ChillJobBundle/src/Form/ChoiceLoader/RomeAppellationChoiceLoader.php @@ -58,7 +58,7 @@ class RomeAppellationChoiceLoader implements ChoiceLoaderInterface public function __construct( EntityManagerInterface $em, PartenaireRomeAppellation $apiAppellation, - ValidatorInterface $validator + ValidatorInterface $validator, ) { $this->em = $em; $this->apiAppellation = $apiAppellation; diff --git a/src/Bundle/ChillJobBundle/src/Form/Type/PickRomeAppellationType.php b/src/Bundle/ChillJobBundle/src/Form/Type/PickRomeAppellationType.php index 174a25c18..b3cb1bc01 100644 --- a/src/Bundle/ChillJobBundle/src/Form/Type/PickRomeAppellationType.php +++ b/src/Bundle/ChillJobBundle/src/Form/Type/PickRomeAppellationType.php @@ -68,7 +68,7 @@ class PickRomeAppellationType extends AbstractType UrlGeneratorInterface $urlGenerator, EntityManagerInterface $em, PartenaireRomeAppellation $apiPartenaire, - ValidatorInterface $validator + ValidatorInterface $validator, ) { $this->translator = $translator; $this->urlGenerator = $urlGenerator; diff --git a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php index 2384e32b4..19e9014da 100644 --- a/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php +++ b/src/Bundle/ChillMainBundle/CRUD/Controller/CRUDController.php @@ -580,7 +580,7 @@ class CRUDController extends AbstractController string $action, mixed $entity, Request $request, - array $defaultTemplateParameters = [] + array $defaultTemplateParameters = [], ) { return $defaultTemplateParameters; } @@ -685,7 +685,7 @@ class CRUDController extends AbstractController Request $request, int $totalItems, PaginatorInterface $paginator, - ?FilterOrderHelper $filterOrder = null + ?FilterOrderHelper $filterOrder = null, ) { $query = $this->queryEntities($action, $request, $paginator, $filterOrder); diff --git a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php index c7871a346..44a86cb24 100644 --- a/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php +++ b/src/Bundle/ChillMainBundle/Command/ChillImportUsersCommand.php @@ -57,7 +57,7 @@ class ChillImportUsersCommand extends Command protected LoggerInterface $logger, protected \Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface $passwordEncoder, protected ValidatorInterface $validator, - protected UserRepository $userRepository + protected UserRepository $userRepository, ) { parent::__construct('chill:main:import-users'); } diff --git a/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php b/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php index 3e1367a00..c4d835dbd 100644 --- a/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php +++ b/src/Bundle/ChillMainBundle/Command/ChillUserSendRenewPasswordCodeCommand.php @@ -69,7 +69,7 @@ class ChillUserSendRenewPasswordCodeCommand extends Command LoggerInterface $logger, EntityManagerInterface $em, RecoverPasswordHelper $recoverPasswordHelper, - EventDispatcherInterface $eventDispatcher + EventDispatcherInterface $eventDispatcher, ) { $this->logger = $logger; $this->em = $em; diff --git a/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php b/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php index 6d998f732..1dc56314b 100644 --- a/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php +++ b/src/Bundle/ChillMainBundle/Command/ExecuteCronJobCommand.php @@ -22,7 +22,7 @@ class ExecuteCronJobCommand extends Command protected static $defaultDescription = 'Execute the cronjob(s) given as argument, or one cronjob scheduled by system.'; public function __construct( - private readonly CronManagerInterface $cronManager + private readonly CronManagerInterface $cronManager, ) { parent::__construct('chill:cron-job:execute'); } diff --git a/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php b/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php index d5dedd169..dfe485f04 100644 --- a/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php +++ b/src/Bundle/ChillMainBundle/Command/LoadAddressesBEFromBestAddressCommand.php @@ -24,7 +24,7 @@ class LoadAddressesBEFromBestAddressCommand extends Command public function __construct( private readonly AddressReferenceBEFromBestAddress $addressImporter, - private readonly PostalCodeBEFromBestAddress $postalCodeBEFromBestAddressImporter + private readonly PostalCodeBEFromBestAddress $postalCodeBEFromBestAddressImporter, ) { parent::__construct(); } diff --git a/src/Bundle/ChillMainBundle/Controller/NewsItemApiController.php b/src/Bundle/ChillMainBundle/Controller/NewsItemApiController.php index c687acc2f..e122b7a3b 100644 --- a/src/Bundle/ChillMainBundle/Controller/NewsItemApiController.php +++ b/src/Bundle/ChillMainBundle/Controller/NewsItemApiController.php @@ -24,7 +24,7 @@ class NewsItemApiController public function __construct( private readonly NewsItemRepository $newsItemRepository, private readonly SerializerInterface $serializer, - private readonly PaginatorFactory $paginatorFactory + private readonly PaginatorFactory $paginatorFactory, ) {} /** diff --git a/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php b/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php index a326e0ff5..d4ee293b1 100644 --- a/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php +++ b/src/Bundle/ChillMainBundle/Controller/PermissionsGroupController.php @@ -443,7 +443,7 @@ final class PermissionsGroupController extends AbstractController */ private function createDeleteRoleScopeForm( PermissionsGroup $permissionsGroup, - RoleScope $roleScope + RoleScope $roleScope, ): FormInterface { return $this->createFormBuilder() ->setAction($this->generateUrl( diff --git a/src/Bundle/ChillMainBundle/Controller/ScopeController.php b/src/Bundle/ChillMainBundle/Controller/ScopeController.php index 5e932063a..45278d7af 100644 --- a/src/Bundle/ChillMainBundle/Controller/ScopeController.php +++ b/src/Bundle/ChillMainBundle/Controller/ScopeController.php @@ -27,7 +27,7 @@ class ScopeController extends AbstractController { public function __construct( private readonly EntityManagerInterface $entityManager, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} /** diff --git a/src/Bundle/ChillMainBundle/Controller/UIController.php b/src/Bundle/ChillMainBundle/Controller/UIController.php index 6282b717d..718d9a3d0 100644 --- a/src/Bundle/ChillMainBundle/Controller/UIController.php +++ b/src/Bundle/ChillMainBundle/Controller/UIController.php @@ -20,7 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; class UIController extends AbstractController { public function showNotificationUserCounterAction( - CountNotificationUser $counter + CountNotificationUser $counter, ) { $nb = $counter->getSumNotification($this->getUser()); diff --git a/src/Bundle/ChillMainBundle/Controller/UserController.php b/src/Bundle/ChillMainBundle/Controller/UserController.php index cc1666494..6c408b3bc 100644 --- a/src/Bundle/ChillMainBundle/Controller/UserController.php +++ b/src/Bundle/ChillMainBundle/Controller/UserController.php @@ -46,7 +46,7 @@ class UserController extends CRUDController protected ParameterBagInterface $parameterBag, private readonly TranslatorInterface $translator, private readonly ChillSecurity $security, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[Route(path: '/{_locale}/admin/main/user/{uid}/add_link_groupcenter', name: 'admin_user_add_groupcenter')] @@ -324,7 +324,7 @@ class UserController extends CRUDController Request $request, int $totalItems, PaginatorInterface $paginator, - ?FilterOrderHelper $filterOrder = null + ?FilterOrderHelper $filterOrder = null, ) { if (0 === $totalItems) { return []; diff --git a/src/Bundle/ChillMainBundle/Cron/CronManager.php b/src/Bundle/ChillMainBundle/Cron/CronManager.php index ded78903d..e32e44817 100644 --- a/src/Bundle/ChillMainBundle/Cron/CronManager.php +++ b/src/Bundle/ChillMainBundle/Cron/CronManager.php @@ -54,7 +54,7 @@ final readonly class CronManager implements CronManagerInterface private CronJobExecutionRepositoryInterface $cronJobExecutionRepository, private EntityManagerInterface $entityManager, private iterable $jobs, - private LoggerInterface $logger + private LoggerInterface $logger, ) {} public function run(?string $forceJob = null): void diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php index 4dde2076c..9d788c64e 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/ChillMainExtension.php @@ -335,7 +335,7 @@ class ChillMainExtension extends Extension implements ContainerBuilder $container, array $crudConfig, array $apiConfig, - Loader\YamlFileLoader $loader + Loader\YamlFileLoader $loader, ): void { if (0 === \count($crudConfig)) { return; diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/CompilerPass/ExportsCompilerPass.php b/src/Bundle/ChillMainBundle/DependencyInjection/CompilerPass/ExportsCompilerPass.php index dbd79c0f4..c2126da1e 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/CompilerPass/ExportsCompilerPass.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/CompilerPass/ExportsCompilerPass.php @@ -44,7 +44,7 @@ class ExportsCompilerPass implements CompilerPassInterface private function compileExportElementsProvider( Definition $chillManagerDefinition, - ContainerBuilder $container + ContainerBuilder $container, ) { $taggedServices = $container->findTaggedServiceIds( 'chill.export_elements_provider' @@ -73,7 +73,7 @@ class ExportsCompilerPass implements CompilerPassInterface private function compileFormatters( Definition $chillManagerDefinition, - ContainerBuilder $container + ContainerBuilder $container, ) { $taggedServices = $container->findTaggedServiceIds( 'chill.export_formatter' diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php b/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php index 8bd3e35f4..b84f110ef 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/Configuration.php @@ -26,7 +26,7 @@ class Configuration implements ConfigurationInterface public function __construct( array $widgetFactories, - private readonly ContainerBuilder $containerBuilder + private readonly ContainerBuilder $containerBuilder, ) { $this->setWidgetFactories($widgetFactories); } diff --git a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php index 85b7c892f..4253b0ed9 100644 --- a/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php +++ b/src/Bundle/ChillMainBundle/DependencyInjection/Widget/AbstractWidgetsCompilerPass.php @@ -122,7 +122,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface public function doProcess( ContainerBuilder $container, $extension, - $containerWidgetConfigParameterName + $containerWidgetConfigParameterName, ) { if (!$container->hasDefinition(self::WIDGET_MANAGER)) { throw new \LogicException('the service '.self::WIDGET_MANAGER.' should be present. It is required by '.self::class); @@ -280,7 +280,7 @@ abstract class AbstractWidgetsCompilerPass implements CompilerPassInterface WidgetFactoryInterface $factory, $place, $order, - array $config + array $config, ) { $serviceId = $factory->getServiceId($container, $place, $order, $config); $definition = $factory->createDefinition( diff --git a/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php b/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php index 180a260b8..f2f1194c8 100644 --- a/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php +++ b/src/Bundle/ChillMainBundle/Entity/CronJobExecution.php @@ -36,7 +36,7 @@ class CronJobExecution public function __construct( #[ORM\Column(type: \Doctrine\DBAL\Types\Types::TEXT, nullable: false)] #[ORM\Id] - private string $key + private string $key, ) { $this->lastStart = new \DateTimeImmutable('now'); } diff --git a/src/Bundle/ChillMainBundle/Entity/GeographicalUnit/SimpleGeographicalUnitDTO.php b/src/Bundle/ChillMainBundle/Entity/GeographicalUnit/SimpleGeographicalUnitDTO.php index 196b5140a..481b530d9 100644 --- a/src/Bundle/ChillMainBundle/Entity/GeographicalUnit/SimpleGeographicalUnitDTO.php +++ b/src/Bundle/ChillMainBundle/Entity/GeographicalUnit/SimpleGeographicalUnitDTO.php @@ -48,6 +48,6 @@ class SimpleGeographicalUnitDTO * @psalm-readonly */ #[Serializer\Groups(['read'])] - public int $layerId + public int $layerId, ) {} } diff --git a/src/Bundle/ChillMainBundle/Export/ExportFormHelper.php b/src/Bundle/ChillMainBundle/Export/ExportFormHelper.php index 4746b6129..ce43c230a 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportFormHelper.php +++ b/src/Bundle/ChillMainBundle/Export/ExportFormHelper.php @@ -126,7 +126,7 @@ final readonly class ExportFormHelper private function savedExportDataToFormDataStepExport( SavedExport $savedExport, - array $formOptions + array $formOptions, ): array { $builder = $this->formFactory ->createBuilder( @@ -148,7 +148,7 @@ final readonly class ExportFormHelper private function savedExportDataToFormDataStepFormatter( SavedExport $savedExport, - array $formOptions + array $formOptions, ): array { $builder = $this->formFactory ->createBuilder( diff --git a/src/Bundle/ChillMainBundle/Export/ExportManager.php b/src/Bundle/ChillMainBundle/Export/ExportManager.php index d4e87d449..949523eb0 100644 --- a/src/Bundle/ChillMainBundle/Export/ExportManager.php +++ b/src/Bundle/ChillMainBundle/Export/ExportManager.php @@ -62,7 +62,7 @@ class ExportManager private readonly TokenStorageInterface $tokenStorage, iterable $exports, iterable $aggregators, - iterable $filters + iterable $filters, // iterable $formatters, // iterable $exportElementProvider ) { @@ -451,7 +451,7 @@ class ExportManager public function isGrantedForElement( DirectExportInterface|ExportInterface|ModifierInterface $element, DirectExportInterface|ExportInterface|null $export = null, - ?array $centers = null + ?array $centers = null, ): bool { if ($element instanceof ExportInterface || $element instanceof DirectExportInterface) { $role = $element->requiredRole(); @@ -533,7 +533,7 @@ class ExportManager ExportInterface $export, QueryBuilder $qb, array $data, - array $center + array $center, ) { $aggregators = $this->retrieveUsedAggregators($data); @@ -560,7 +560,7 @@ class ExportManager ExportInterface $export, QueryBuilder $qb, mixed $data, - array $centers + array $centers, ) { $filters = $this->retrieveUsedFilters($data); diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php index ee7b5d5c3..f0c2b9cee 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVFormatter.php @@ -51,7 +51,7 @@ class CSVFormatter implements FormatterInterface public function __construct( protected TranslatorInterface $translator, - ExportManager $manager + ExportManager $manager, ) { $this->exportManager = $manager; } @@ -118,7 +118,7 @@ class CSVFormatter implements FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ) { $this->result = $result; $this->orderingHeaders($formatterData); diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php index 853c177b7..fda49f202 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVListFormatter.php @@ -68,7 +68,7 @@ class CSVListFormatter implements FormatterInterface public function buildForm( FormBuilderInterface $builder, $exportAlias, - array $aggregatorAliases + array $aggregatorAliases, ) { $builder->add('numerotation', ChoiceType::class, [ 'choices' => [ @@ -108,7 +108,7 @@ class CSVListFormatter implements FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ) { $this->result = $result; $this->exportAlias = $exportAlias; diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php index 8b32714cc..9385f1b61 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/CSVPivotedListFormatter.php @@ -66,7 +66,7 @@ class CSVPivotedListFormatter implements FormatterInterface public function buildForm( FormBuilderInterface $builder, $exportAlias, - array $aggregatorAliases + array $aggregatorAliases, ) { $builder->add('numerotation', ChoiceType::class, [ 'choices' => [ @@ -107,7 +107,7 @@ class CSVPivotedListFormatter implements FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ) { $this->result = $result; $this->exportAlias = $exportAlias; diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php index 4147c0016..76e17378f 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadSheetFormatter.php @@ -129,7 +129,7 @@ class SpreadSheetFormatter implements FormatterInterface public function buildForm( FormBuilderInterface $builder, $exportAlias, - array $aggregatorAliases + array $aggregatorAliases, ) { // choosing between formats $builder->add('format', ChoiceType::class, [ @@ -178,7 +178,7 @@ class SpreadSheetFormatter implements FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ): Response { // store all data when the process is initiated $this->result = $result; @@ -219,7 +219,7 @@ class SpreadSheetFormatter implements FormatterInterface protected function addContentTable( Worksheet $worksheet, $sortedResults, - $line + $line, ) { $worksheet->fromArray( $sortedResults, @@ -274,7 +274,7 @@ class SpreadSheetFormatter implements FormatterInterface protected function addHeaders( Worksheet &$worksheet, array $globalKeys, - $line + $line, ) { // get the displayable form of headers $displayables = []; diff --git a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php index 7284ff70a..3c5e90381 100644 --- a/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php +++ b/src/Bundle/ChillMainBundle/Export/Formatter/SpreadsheetListFormatter.php @@ -72,7 +72,7 @@ class SpreadsheetListFormatter implements FormatterInterface public function buildForm( FormBuilderInterface $builder, $exportAlias, - array $aggregatorAliases + array $aggregatorAliases, ) { $builder ->add('format', ChoiceType::class, [ @@ -120,7 +120,7 @@ class SpreadsheetListFormatter implements FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ) { $this->result = $result; $this->exportAlias = $exportAlias; diff --git a/src/Bundle/ChillMainBundle/Export/FormatterInterface.php b/src/Bundle/ChillMainBundle/Export/FormatterInterface.php index 11316ea4b..37ed788f4 100644 --- a/src/Bundle/ChillMainBundle/Export/FormatterInterface.php +++ b/src/Bundle/ChillMainBundle/Export/FormatterInterface.php @@ -31,7 +31,7 @@ interface FormatterInterface public function buildForm( FormBuilderInterface $builder, $exportAlias, - array $aggregatorAliases + array $aggregatorAliases, ); /** @@ -58,7 +58,7 @@ interface FormatterInterface $exportAlias, array $exportData, array $filtersData, - array $aggregatorsData + array $aggregatorsData, ); public function getType(); diff --git a/src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php b/src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php index 1796f7ed2..bb45940fc 100644 --- a/src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php +++ b/src/Bundle/ChillMainBundle/Form/DataTransformer/IdToEntityDataTransformer.php @@ -35,7 +35,7 @@ class IdToEntityDataTransformer implements DataTransformerInterface public function __construct( private readonly ObjectRepository $repository, private readonly bool $multiple = false, - ?callable $getId = null + ?callable $getId = null, ) { $this->getId = $getId ?? static fn (object $o) => $o->getId(); } diff --git a/src/Bundle/ChillMainBundle/Form/Type/AppendScopeChoiceTypeTrait.php b/src/Bundle/ChillMainBundle/Form/Type/AppendScopeChoiceTypeTrait.php index 469b9c18e..1b371a473 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/AppendScopeChoiceTypeTrait.php +++ b/src/Bundle/ChillMainBundle/Form/Type/AppendScopeChoiceTypeTrait.php @@ -103,7 +103,7 @@ trait AppendScopeChoiceTypeTrait AuthorizationHelper $authorizationHelper, TranslatableStringHelper $translatableStringHelper, ObjectManager $om, - $name = 'scope' + $name = 'scope', ) { $reachableScopes = $authorizationHelper ->getReachableScopes($user, $role, $center); diff --git a/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php b/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php index f4b4da609..2183b85f2 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/ComposedRoleScopeType.php @@ -40,7 +40,7 @@ class ComposedRoleScopeType extends AbstractType public function __construct( private readonly TranslatableStringHelper $translatableStringHelper, - RoleProvider $roleProvider + RoleProvider $roleProvider, ) { $this->roles = $roleProvider->getRoles(); $this->rolesWithoutScope = $roleProvider->getRolesWithoutScopes(); diff --git a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php index a093dda44..fa8caf488 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/Export/PickCenterType.php @@ -32,7 +32,7 @@ final class PickCenterType extends AbstractType public function __construct( private readonly ExportManager $exportManager, private readonly RegroupmentRepository $regroupmentRepository, - private readonly AuthorizationHelperForCurrentUserInterface $authorizationHelper + private readonly AuthorizationHelperForCurrentUserInterface $authorizationHelper, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php b/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php index 5873c0a45..139328b7c 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/Listing/FilterOrderType.php @@ -59,7 +59,7 @@ final class FilterOrderType extends \Symfony\Component\Form\AbstractType $entityChoicesBuilder = $builder->create('entity_choices', null, ['compound' => true]); foreach ($helper->getEntityChoices() as $key => [ - 'label' => $label, 'choices' => $choices, 'options' => $opts, 'class' => $class + 'label' => $label, 'choices' => $choices, 'options' => $opts, 'class' => $class, ]) { $entityChoicesBuilder->add($key, EntityType::class, [ 'label' => $label, @@ -114,7 +114,7 @@ final class FilterOrderType extends \Symfony\Component\Form\AbstractType $userPickersBuilder = $builder->create('user_pickers', null, ['compound' => true]); foreach ($helper->getUserPickers() as $name => [ - 'label' => $label, 'options' => $opts + 'label' => $label, 'options' => $opts, ]) { $userPickersBuilder->add( $name, diff --git a/src/Bundle/ChillMainBundle/Form/Type/PostalCodeType.php b/src/Bundle/ChillMainBundle/Form/Type/PostalCodeType.php index b02d069f5..f7055858f 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/PostalCodeType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/PostalCodeType.php @@ -51,7 +51,7 @@ class PostalCodeType extends AbstractType TranslatableStringHelper $helper, UrlGeneratorInterface $urlGenerator, PostalCodeChoiceLoader $choiceLoader, - TranslatorInterface $translator + TranslatorInterface $translator, ) { $this->translatableStringHelper = $helper; $this->urlGenerator = $urlGenerator; diff --git a/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php b/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php index 10d083bd8..6f10626c6 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/ScopePickerType.php @@ -42,7 +42,7 @@ class ScopePickerType extends AbstractType public function __construct( private readonly AuthorizationHelperInterface $authorizationHelper, private readonly Security $security, - private readonly TranslatableStringHelperInterface $translatableStringHelper + private readonly TranslatableStringHelperInterface $translatableStringHelper, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php b/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php index ebda0c34f..b49d59442 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/UserPickerType.php @@ -49,7 +49,7 @@ class UserPickerType extends AbstractType TokenStorageInterface $tokenStorage, protected UserRepository $userRepository, protected UserACLAwareRepositoryInterface $userACLAwareRepository, - private readonly UserRender $userRender + private readonly UserRender $userRender, ) { $this->authorizationHelper = $authorizationHelper; $this->tokenStorage = $tokenStorage; diff --git a/src/Bundle/ChillMainBundle/Form/UserPasswordType.php b/src/Bundle/ChillMainBundle/Form/UserPasswordType.php index b3ae403a3..256e68731 100644 --- a/src/Bundle/ChillMainBundle/Form/UserPasswordType.php +++ b/src/Bundle/ChillMainBundle/Form/UserPasswordType.php @@ -37,7 +37,7 @@ class UserPasswordType extends AbstractType public function __construct( \Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface $passwordEncoder, - LoggerInterface $chillLogger + LoggerInterface $chillLogger, ) { $this->passwordEncoder = $passwordEncoder; $this->chillLogger = $chillLogger; diff --git a/src/Bundle/ChillMainBundle/Notification/Mailer.php b/src/Bundle/ChillMainBundle/Notification/Mailer.php index 2d50cb850..48adcd24f 100644 --- a/src/Bundle/ChillMainBundle/Notification/Mailer.php +++ b/src/Bundle/ChillMainBundle/Notification/Mailer.php @@ -73,7 +73,7 @@ class Mailer array $subject, array $bodies, ?callable $callback = null, - mixed $force = false + mixed $force = false, ) { $fromEmail = $this->routeParameters['from_email']; $fromName = $this->routeParameters['from_name']; diff --git a/src/Bundle/ChillMainBundle/Pagination/ChillItemsPerPageTwig.php b/src/Bundle/ChillMainBundle/Pagination/ChillItemsPerPageTwig.php index d66adb974..ede9a6a61 100644 --- a/src/Bundle/ChillMainBundle/Pagination/ChillItemsPerPageTwig.php +++ b/src/Bundle/ChillMainBundle/Pagination/ChillItemsPerPageTwig.php @@ -42,7 +42,7 @@ class ChillItemsPerPageTwig extends AbstractExtension public function paginationRender( Environment $env, PaginatorInterface $paginator, - $template = '@ChillMain/Pagination/items_per_page.html.twig' + $template = '@ChillMain/Pagination/items_per_page.html.twig', ) { return $env->render($template, [ 'paginator' => $paginator, diff --git a/src/Bundle/ChillMainBundle/Pagination/ChillPaginationTwig.php b/src/Bundle/ChillMainBundle/Pagination/ChillPaginationTwig.php index e5883d593..c8f06f1a9 100644 --- a/src/Bundle/ChillMainBundle/Pagination/ChillPaginationTwig.php +++ b/src/Bundle/ChillMainBundle/Pagination/ChillPaginationTwig.php @@ -46,7 +46,7 @@ class ChillPaginationTwig extends AbstractExtension public function paginationRender( Environment $env, PaginatorInterface $paginator, - $template = '@ChillMain/Pagination/long.html.twig' + $template = '@ChillMain/Pagination/long.html.twig', ) { $t = match ($template) { 'long' => self::LONG_TEMPLATE, diff --git a/src/Bundle/ChillMainBundle/Pagination/Page.php b/src/Bundle/ChillMainBundle/Pagination/Page.php index 9858a27b8..fc49db94f 100644 --- a/src/Bundle/ChillMainBundle/Pagination/Page.php +++ b/src/Bundle/ChillMainBundle/Pagination/Page.php @@ -44,7 +44,7 @@ class Page implements PageInterface /** * The number of items in the whole iteration. */ - protected int $totalItems + protected int $totalItems, ) { $this->urlGenerator = $urlGenerator; } diff --git a/src/Bundle/ChillMainBundle/Pagination/Paginator.php b/src/Bundle/ChillMainBundle/Pagination/Paginator.php index 34a405a20..b2500dfc2 100644 --- a/src/Bundle/ChillMainBundle/Pagination/Paginator.php +++ b/src/Bundle/ChillMainBundle/Pagination/Paginator.php @@ -56,7 +56,7 @@ class Paginator implements PaginatorInterface /** * the key in the GET parameter to indicate the number of item per page. */ - protected string $itemPerPageKey + protected string $itemPerPageKey, ) {} public function count(): int diff --git a/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php b/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php index 6453db4ae..9a809287b 100644 --- a/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php +++ b/src/Bundle/ChillMainBundle/Pagination/PaginatorFactory.php @@ -38,7 +38,7 @@ final readonly class PaginatorFactory implements PaginatorFactoryInterface * the default item per page. This may be overriden by * the request or inside the paginator. */ - private int $itemPerPage = 20 + private int $itemPerPage = 20, ) {} /** @@ -53,7 +53,7 @@ final readonly class PaginatorFactory implements PaginatorFactoryInterface public function create( int $totalItems, ?string $route = null, - ?array $routeParameters = null + ?array $routeParameters = null, ): PaginatorInterface { return new Paginator( $totalItems, diff --git a/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php b/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php index d08d393a3..a73c3c71c 100644 --- a/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php +++ b/src/Bundle/ChillMainBundle/Phonenumber/PhonenumberHelper.php @@ -40,7 +40,7 @@ final class PhonenumberHelper implements PhoneNumberHelperInterface public function __construct( private readonly CacheItemPoolInterface $cachePool, ParameterBagInterface $parameterBag, - private readonly LoggerInterface $logger + private readonly LoggerInterface $logger, ) { $this->config = $config = $parameterBag->get('chill_main.phone_helper'); diff --git a/src/Bundle/ChillMainBundle/Repository/NewsItemRepository.php b/src/Bundle/ChillMainBundle/Repository/NewsItemRepository.php index 4552e2a92..65292f849 100644 --- a/src/Bundle/ChillMainBundle/Repository/NewsItemRepository.php +++ b/src/Bundle/ChillMainBundle/Repository/NewsItemRepository.php @@ -58,7 +58,7 @@ class NewsItemRepository implements ObjectRepository } private function buildBaseQuery( - ?string $pattern = null + ?string $pattern = null, ): QueryBuilder { $qb = $this->createQueryBuilder('n'); diff --git a/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminUserMenuBuilder.php b/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminUserMenuBuilder.php index 809733287..22bdfbeb8 100644 --- a/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminUserMenuBuilder.php +++ b/src/Bundle/ChillMainBundle/Routing/MenuBuilder/AdminUserMenuBuilder.php @@ -25,7 +25,7 @@ class AdminUserMenuBuilder implements LocalMenuBuilderInterface public function __construct( AuthorizationCheckerInterface $authorizationChecker, - protected ParameterBagInterface $parameterBag + protected ParameterBagInterface $parameterBag, ) { $this->authorizationChecker = $authorizationChecker; } diff --git a/src/Bundle/ChillMainBundle/Search/Model/Result.php b/src/Bundle/ChillMainBundle/Search/Model/Result.php index 1866da2f2..d2365d348 100644 --- a/src/Bundle/ChillMainBundle/Search/Model/Result.php +++ b/src/Bundle/ChillMainBundle/Search/Model/Result.php @@ -18,7 +18,7 @@ class Result /** * mixed an arbitrary result. */ - private $result + private $result, ) {} public function getRelevance(): float diff --git a/src/Bundle/ChillMainBundle/Search/SearchProvider.php b/src/Bundle/ChillMainBundle/Search/SearchProvider.php index 73c48f4cf..fbf005430 100644 --- a/src/Bundle/ChillMainBundle/Search/SearchProvider.php +++ b/src/Bundle/ChillMainBundle/Search/SearchProvider.php @@ -120,7 +120,7 @@ class SearchProvider $start = 0, $limit = 50, array $options = [], - $format = 'html' + $format = 'html', ) { $terms = $this->parse($pattern); $search = $this->getByName($name); @@ -150,7 +150,7 @@ class SearchProvider $start = 0, $limit = 50, array $options = [], - $format = 'html' + $format = 'html', ) { $terms = $this->parse($pattern); $results = []; diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php index 098b741e6..52f1646c4 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/AuthorizationHelper.php @@ -33,7 +33,7 @@ class AuthorizationHelper implements AuthorizationHelperInterface private readonly LoggerInterface $logger, private readonly ScopeResolverDispatcher $scopeResolverDispatcher, private readonly UserACLAwareRepositoryInterface $userACLAwareRepository, - private readonly ParentRoleHelper $parentRoleHelper + private readonly ParentRoleHelper $parentRoleHelper, ) {} /** diff --git a/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php b/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php index 071388fcf..dbc958cc4 100644 --- a/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php +++ b/src/Bundle/ChillMainBundle/Security/Authorization/DefaultVoterHelper.php @@ -17,7 +17,7 @@ final readonly class DefaultVoterHelper implements VoterHelperInterface { public function __construct( private AuthorizationHelper $authorizationHelper, - private array $configuration + private array $configuration, ) {} public function supports($attribute, $subject): bool diff --git a/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php b/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php index 231bc021d..ccaf26872 100644 --- a/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php +++ b/src/Bundle/ChillMainBundle/Security/ParentRoleHelper.php @@ -30,7 +30,7 @@ class ParentRoleHelper public function __construct( protected RoleHierarchyInterface $roleHierarchy, - ParameterBagInterface $parameterBag + ParameterBagInterface $parameterBag, ) { $this->hierarchy = $parameterBag->get('security.role_hierarchy.roles'); } diff --git a/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php b/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php index e868262e2..b325a9345 100644 --- a/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php +++ b/src/Bundle/ChillMainBundle/Security/PasswordRecover/RecoverPasswordHelper.php @@ -47,7 +47,7 @@ class RecoverPasswordHelper array $templateParameters = [], $force = false, array $additionalUrlParameters = [], - $emailSubject = 'Recover your password' + $emailSubject = 'Recover your password', ) { if (null === $user->getEmail() || '' === trim($user->getEmail())) { throw new \UnexpectedValueException('No emaail associated to the user'); diff --git a/src/Bundle/ChillMainBundle/Security/RoleProvider.php b/src/Bundle/ChillMainBundle/Security/RoleProvider.php index ff3b8f411..ccaa92409 100644 --- a/src/Bundle/ChillMainBundle/Security/RoleProvider.php +++ b/src/Bundle/ChillMainBundle/Security/RoleProvider.php @@ -25,7 +25,7 @@ class RoleProvider /** * @var iterable */ - private readonly iterable $providers + private readonly iterable $providers, ) {} public function getRoles(): array diff --git a/src/Bundle/ChillMainBundle/Service/Import/AddressReferenceBaseImporter.php b/src/Bundle/ChillMainBundle/Service/Import/AddressReferenceBaseImporter.php index 7e4c93b3f..707754c4b 100644 --- a/src/Bundle/ChillMainBundle/Service/Import/AddressReferenceBaseImporter.php +++ b/src/Bundle/ChillMainBundle/Service/Import/AddressReferenceBaseImporter.php @@ -68,7 +68,7 @@ final class AddressReferenceBaseImporter string $source, ?float $lat = null, ?float $lon = null, - ?int $srid = null + ?int $srid = null, ): void { if (!$this->isInitialized) { $this->initialize($source); diff --git a/src/Bundle/ChillMainBundle/Service/Import/GeographicalUnitBaseImporter.php b/src/Bundle/ChillMainBundle/Service/Import/GeographicalUnitBaseImporter.php index 705314642..642cea31a 100644 --- a/src/Bundle/ChillMainBundle/Service/Import/GeographicalUnitBaseImporter.php +++ b/src/Bundle/ChillMainBundle/Service/Import/GeographicalUnitBaseImporter.php @@ -64,7 +64,7 @@ final class GeographicalUnitBaseImporter string $unitName, string $unitKey, string $geomAsWKT, - ?int $srid = null + ?int $srid = null, ): void { $this->initialize(); diff --git a/src/Bundle/ChillMainBundle/Service/Import/PostalCodeBaseImporter.php b/src/Bundle/ChillMainBundle/Service/Import/PostalCodeBaseImporter.php index a0fc5a5db..7ee381cf0 100644 --- a/src/Bundle/ChillMainBundle/Service/Import/PostalCodeBaseImporter.php +++ b/src/Bundle/ChillMainBundle/Service/Import/PostalCodeBaseImporter.php @@ -69,7 +69,7 @@ class PostalCodeBaseImporter string $refPostalCodeSource, float $centerLat, float $centerLon, - int $centerSRID + int $centerSRID, ): void { $this->waitingForInsert[] = [ $countryCode, diff --git a/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDate.php b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDate.php index 445b35cb0..1f7f01dbc 100644 --- a/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDate.php +++ b/src/Bundle/ChillMainBundle/Service/RollingDate/RollingDate.php @@ -68,7 +68,7 @@ class RollingDate public function __construct( private readonly string $roll, private readonly ?\DateTimeImmutable $fixedDate = null, - private readonly \DateTimeImmutable $pivotDate = new \DateTimeImmutable('now') + private readonly \DateTimeImmutable $pivotDate = new \DateTimeImmutable('now'), ) {} public function getFixedDate(): ?\DateTimeImmutable diff --git a/src/Bundle/ChillMainBundle/Service/ShortMessageOvh/OvhShortMessageSender.php b/src/Bundle/ChillMainBundle/Service/ShortMessageOvh/OvhShortMessageSender.php index d81123c9a..cf70ed282 100644 --- a/src/Bundle/ChillMainBundle/Service/ShortMessageOvh/OvhShortMessageSender.php +++ b/src/Bundle/ChillMainBundle/Service/ShortMessageOvh/OvhShortMessageSender.php @@ -35,7 +35,7 @@ class OvhShortMessageSender implements ShortMessageSenderInterface private readonly string $sender, // for DI, must remains as third argument private readonly LoggerInterface $logger, - private readonly PhoneNumberUtil $phoneNumberUtil + private readonly PhoneNumberUtil $phoneNumberUtil, ) {} public function send(ShortMessage $shortMessage): void diff --git a/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php b/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php index da91fc6f8..ac0def71b 100644 --- a/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php +++ b/src/Bundle/ChillMainBundle/Templating/ChillTwigHelper.php @@ -55,7 +55,7 @@ class ChillTwigHelper extends AbstractExtension $value, $message = 'No value', $template = 'default', - array $options = [] + array $options = [], ) { if ($value instanceof \DateTimeInterface) { $options = \array_merge([ diff --git a/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php b/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php index 9a11a7ffc..5f67ccfe2 100644 --- a/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php +++ b/src/Bundle/ChillMainBundle/Templating/ChillTwigRoutingHelper.php @@ -37,7 +37,7 @@ class ChillTwigRoutingHelper extends AbstractExtension public function __construct( RequestStack $requestStack, - RoutingExtension $originalExtension + RoutingExtension $originalExtension, ) { $this->requestStack = $requestStack; $this->originalExtension = $originalExtension; diff --git a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php index b213203df..350f71d4b 100644 --- a/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php +++ b/src/Bundle/ChillMainBundle/Templating/Listing/FilterOrderHelperBuilder.php @@ -128,7 +128,7 @@ class FilterOrderHelperBuilder foreach ( $this->userPickers as $name => [ 'label' => $label, - 'options' => $options + 'options' => $options, ] ) { $helper->addUserPicker($name, $label, $options); diff --git a/src/Bundle/ChillMainBundle/Templating/Listing/Templating.php b/src/Bundle/ChillMainBundle/Templating/Listing/Templating.php index 6d91cdd83..0bf487072 100644 --- a/src/Bundle/ChillMainBundle/Templating/Listing/Templating.php +++ b/src/Bundle/ChillMainBundle/Templating/Listing/Templating.php @@ -45,7 +45,7 @@ class Templating extends AbstractExtension Environment $environment, FilterOrderHelper $helper, ?string $template = '@ChillMain/FilterOrder/base.html.twig', - ?array $options = [] + ?array $options = [], ): string { $otherParameters = []; diff --git a/src/Bundle/ChillMainBundle/Test/DummyPaginator.php b/src/Bundle/ChillMainBundle/Test/DummyPaginator.php index a44c65e9b..d85608a6b 100644 --- a/src/Bundle/ChillMainBundle/Test/DummyPaginator.php +++ b/src/Bundle/ChillMainBundle/Test/DummyPaginator.php @@ -22,7 +22,7 @@ class DummyPaginator implements PaginatorFactoryInterface public function __construct( private readonly UrlGeneratorInterface $urlGenerator, private readonly string $route, - private readonly array $routeParameters = [] + private readonly array $routeParameters = [], ) {} public function create(int $totalItems, ?string $route = null, ?array $routeParameters = null): PaginatorInterface diff --git a/src/Bundle/ChillMainBundle/Test/PrepareClientTrait.php b/src/Bundle/ChillMainBundle/Test/PrepareClientTrait.php index 353653619..619436269 100644 --- a/src/Bundle/ChillMainBundle/Test/PrepareClientTrait.php +++ b/src/Bundle/ChillMainBundle/Test/PrepareClientTrait.php @@ -30,7 +30,7 @@ trait PrepareClientTrait */ public function getClientAuthenticated( $username = 'center a_social', - $password = 'password' + $password = 'password', ): KernelBrowser { if ('admin' === $username) { return $this->getClientAuthenticatedAsAdmin(); diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php index 7739bc7b9..e2d0e1393 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php @@ -531,7 +531,7 @@ class DummyFilterWithApplying implements FilterInterface { public function __construct( private readonly ?string $role, - private readonly string $applyOn + private readonly string $applyOn, ) {} public function getTitle() diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php index 14bb7dfe6..787a5833a 100644 --- a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php @@ -79,7 +79,7 @@ final class PageTest extends KernelTestCase public function testGetFirstItemNumber( $number, $itemPerPage, - $expectedItemPerPage + $expectedItemPerPage, ) { $page = $this->generatePage($number, $itemPerPage); @@ -96,7 +96,7 @@ final class PageTest extends KernelTestCase public function testGetLastItemNumber( $number, $itemPerPage, - $expectedItemPerPage + $expectedItemPerPage, ) { $page = $this->generatePage($number, $itemPerPage); @@ -121,7 +121,7 @@ final class PageTest extends KernelTestCase $itemPerPage = 10, $route = 'route', array $routeParameters = [], - mixed $totalItems = 100 + mixed $totalItems = 100, ) { $urlGenerator = $this->prophet->prophesize(); $urlGenerator->willImplement(UrlGeneratorInterface::class); diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php index 579348196..f32a772eb 100644 --- a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php @@ -120,7 +120,7 @@ final class PaginatorTest extends KernelTestCase $totalItems, $itemPerPage, $currentPage, - $expectedHasNextPage + $expectedHasNextPage, ) { $paginator = $this->generatePaginator($totalItems, $itemPerPage, $currentPage); @@ -141,7 +141,7 @@ final class PaginatorTest extends KernelTestCase $totalItems, $itemPerpage, $pageNumber, - $expectedHasPage + $expectedHasPage, ) { $paginator = $this->generatePaginator($totalItems, $itemPerpage); @@ -159,7 +159,7 @@ final class PaginatorTest extends KernelTestCase $totalItems, $itemPerPage, $currentPage, - mixed $expectedHasNextPage + mixed $expectedHasNextPage, ) { $paginator = $this->generatePaginator($totalItems, $itemPerPage, $currentPage); @@ -227,7 +227,7 @@ final class PaginatorTest extends KernelTestCase $itemPerPage, mixed $currentPageNumber = 1, $route = '', - array $routeParameters = [] + array $routeParameters = [], ) { $urlGenerator = $this->prophet->prophesize(); $urlGenerator->willImplement(UrlGeneratorInterface::class); diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php index 1ebe9610d..4ce7034ce 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php @@ -233,7 +233,7 @@ final class AuthorizationHelperTest extends KernelTestCase User $user, string $role, Center $center, - $message + $message, ) { $reachableScopes = $this->getAuthorizationHelper() ->getReachableScopes($user, $role, $center); diff --git a/src/Bundle/ChillMainBundle/Tests/TestHelper.php b/src/Bundle/ChillMainBundle/Tests/TestHelper.php index 6c144a5fa..b7221e3d8 100644 --- a/src/Bundle/ChillMainBundle/Tests/TestHelper.php +++ b/src/Bundle/ChillMainBundle/Tests/TestHelper.php @@ -25,7 +25,7 @@ class TestHelper */ public static function getAuthenticatedClientOptions( mixed $username = 'center a_social', - mixed $password = 'password' + mixed $password = 'password', ) { return [ 'PHP_AUTH_USER' => $username, diff --git a/src/Bundle/ChillPersonBundle/Actions/ActionEvent.php b/src/Bundle/ChillPersonBundle/Actions/ActionEvent.php index ac3363db0..c8c1add72 100644 --- a/src/Bundle/ChillPersonBundle/Actions/ActionEvent.php +++ b/src/Bundle/ChillPersonBundle/Actions/ActionEvent.php @@ -51,7 +51,7 @@ class ActionEvent extends \Symfony\Contracts\EventDispatcher\Event /** * an array of key value data to describe the movement. */ - protected $metadata = [] + protected $metadata = [], ) {} /** diff --git a/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php b/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php index 292c805a0..2ebae0457 100644 --- a/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php +++ b/src/Bundle/ChillPersonBundle/Actions/Remove/PersonMove.php @@ -32,7 +32,7 @@ class PersonMove public function __construct( private readonly EntityManagerInterface $em, private readonly PersonMoveManager $personMoveManager, - private readonly EventDispatcherInterface $eventDispatcher + private readonly EventDispatcherInterface $eventDispatcher, ) {} /** diff --git a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php index 6472a48f5..19d64c488 100644 --- a/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php +++ b/src/Bundle/ChillPersonBundle/Command/ChillPersonMoveCommand.php @@ -28,7 +28,7 @@ final class ChillPersonMoveCommand extends Command public function __construct( private readonly PersonMove $mover, private readonly EntityManagerInterface $em, - private readonly LoggerInterface $chillLogger + private readonly LoggerInterface $chillLogger, ) { parent::__construct('chill:person:move'); } diff --git a/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php b/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php index 6aab04389..636330138 100644 --- a/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/Command/ImportSocialWorkMetadata.php @@ -24,7 +24,7 @@ final class ImportSocialWorkMetadata extends Command protected EntityManagerInterface $em; public function __construct( - protected SocialWorkMetadataInterface $importer + protected SocialWorkMetadataInterface $importer, ) { parent::__construct('chill:person:import-socialwork'); } diff --git a/src/Bundle/ChillPersonBundle/Config/ConfigPersonAltNamesHelper.php b/src/Bundle/ChillPersonBundle/Config/ConfigPersonAltNamesHelper.php index 3f233c174..4be480442 100644 --- a/src/Bundle/ChillPersonBundle/Config/ConfigPersonAltNamesHelper.php +++ b/src/Bundle/ChillPersonBundle/Config/ConfigPersonAltNamesHelper.php @@ -23,7 +23,7 @@ class ConfigPersonAltNamesHelper /** * the raw config, directly from the container parameter. */ - private $config + private $config, ) {} /** diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php index 0243d55b5..a980a1271 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php @@ -41,7 +41,7 @@ final class AccompanyingCourseWorkController extends AbstractController private readonly LoggerInterface $chillLogger, private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly FilterOrderHelperFactoryInterface $filterOrderHelperFactory, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} #[Route(path: '{_locale}/person/accompanying-period/{id}/work/new', name: 'chill_person_accompanying_period_work_new', methods: ['GET'])] diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php index 7c18ab8a3..7c7def6a7 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodController.php @@ -39,7 +39,7 @@ class AccompanyingPeriodController extends AbstractController private readonly EventDispatcherInterface $eventDispatcher, private readonly ValidatorInterface $validator, private readonly TranslatorInterface $translator, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} /** diff --git a/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php b/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php index d9583c8d8..789adf471 100644 --- a/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php +++ b/src/Bundle/ChillPersonBundle/Controller/HouseholdCompositionController.php @@ -43,7 +43,7 @@ class HouseholdCompositionController extends AbstractController private readonly EntityManagerInterface $entityManager, private readonly TranslatorInterface $translator, private readonly \Twig\Environment $engine, - private readonly UrlGeneratorInterface $urlGenerator + private readonly UrlGeneratorInterface $urlGenerator, ) {} #[Route(path: '/{_locale}/person/household/{household_id}/composition/{composition_id}/delete', name: 'chill_person_household_composition_delete')] diff --git a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php index 6a1820b24..ffe3295d9 100644 --- a/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/PersonApiController.php @@ -31,7 +31,7 @@ class PersonApiController extends ApiController public function __construct( private readonly AuthorizedCenterOnPersonCreationInterface $authorizedCenterOnPersonCreation, private readonly ConfigPersonAltNamesHelper $configPersonAltNameHelper, - ParameterBagInterface $parameterBag + ParameterBagInterface $parameterBag, ) { $this->showCenters = $parameterBag->get('chill_main')['acl']['form_show_centers']; } diff --git a/src/Bundle/ChillPersonBundle/Controller/UserAccompanyingPeriodController.php b/src/Bundle/ChillPersonBundle/Controller/UserAccompanyingPeriodController.php index adaaa27d0..3a2b1be6e 100644 --- a/src/Bundle/ChillPersonBundle/Controller/UserAccompanyingPeriodController.php +++ b/src/Bundle/ChillPersonBundle/Controller/UserAccompanyingPeriodController.php @@ -35,7 +35,7 @@ class UserAccompanyingPeriodController extends AbstractController ], false => [ AccompanyingPeriod::STEP_CLOSED, - ] + ], }; $total = $this->accompanyingPeriodRepository->countBy(['user' => $this->getUser(), 'step' => $steps]); diff --git a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php index e8026d04b..d356cf9ad 100644 --- a/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php +++ b/src/Bundle/ChillPersonBundle/DataFixtures/ORM/LoadPeople.php @@ -227,7 +227,7 @@ class LoadPeople extends AbstractFixture implements ContainerAwareInterface, Ord protected CountryRepository $countryRepository, protected MaritalStatusRepository $maritalStatusRepository, protected ScopeRepository $scopeRepository, - protected UserRepository $userRepository + protected UserRepository $userRepository, ) { $this->faker = Factory::create('fr_FR'); $this->faker->addProvider($this); diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkReferrerHistory.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkReferrerHistory.php index 0942874ea..ac09a1433 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkReferrerHistory.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/AccompanyingPeriodWorkReferrerHistory.php @@ -45,7 +45,7 @@ class AccompanyingPeriodWorkReferrerHistory implements TrackCreationInterface, T * @var \DateTimeImmutable */ #[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: false)] - private \DateTimeImmutable $startDate + private \DateTimeImmutable $startDate, ) {} public function getId(): ?int diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php index 4376eba8c..b600ab0bf 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriod/UserHistory.php @@ -39,7 +39,7 @@ class UserHistory implements TrackCreationInterface #[ORM\JoinColumn(nullable: false)] private User $user, #[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATETIME_IMMUTABLE, nullable: false, options: ['default' => 'now()'])] - private \DateTimeImmutable $startDate = new \DateTimeImmutable('now') + private \DateTimeImmutable $startDate = new \DateTimeImmutable('now'), ) {} public function getAccompanyingPeriod(): AccompanyingPeriod diff --git a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriodParticipation.php b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriodParticipation.php index b6da20f58..498aa44e4 100644 --- a/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriodParticipation.php +++ b/src/Bundle/ChillPersonBundle/Entity/AccompanyingPeriodParticipation.php @@ -42,7 +42,7 @@ class AccompanyingPeriodParticipation #[ORM\JoinColumn(name: 'accompanyingperiod_id', referencedColumnName: 'id', nullable: false)] private ?AccompanyingPeriod $accompanyingPeriod, #[Groups(['read', 'docgen:read'])] #[ORM\ManyToOne(targetEntity: Person::class, inversedBy: 'accompanyingPeriodParticipations')] #[ORM\JoinColumn(name: 'person_id', referencedColumnName: 'id', nullable: false)] - private ?Person $person + private ?Person $person, ) { $this->startDate = new \DateTime('now'); $person->getAccompanyingPeriodParticipations()->add($this); diff --git a/src/Bundle/ChillPersonBundle/Entity/Person.php b/src/Bundle/ChillPersonBundle/Entity/Person.php index b9b3e5bf4..0b4b54681 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person.php @@ -594,7 +594,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI */ public function getAccompanyingPeriodInvolved( bool $asParticipantOpen = true, - bool $asRequestor = true + bool $asRequestor = true, ): Collection { $result = new ArrayCollection(); @@ -621,7 +621,7 @@ class Person implements HasCenterInterface, TrackCreationInterface, TrackUpdateI public function countAccompanyingPeriodInvolved( bool $asParticipantOpen = true, - bool $asRequestor = true + bool $asRequestor = true, ): int { // TODO should be optimized to avoid loading accompanying period ? return $this->getAccompanyingPeriodInvolved($asParticipantOpen, $asRequestor) diff --git a/src/Bundle/ChillPersonBundle/Entity/Person/PersonCenterHistory.php b/src/Bundle/ChillPersonBundle/Entity/Person/PersonCenterHistory.php index f03eb7907..6c5d19413 100644 --- a/src/Bundle/ChillPersonBundle/Entity/Person/PersonCenterHistory.php +++ b/src/Bundle/ChillPersonBundle/Entity/Person/PersonCenterHistory.php @@ -44,7 +44,7 @@ class PersonCenterHistory implements TrackCreationInterface, TrackUpdateInterfac #[ORM\ManyToOne(targetEntity: Center::class)] private ?Center $center = null, #[ORM\Column(type: \Doctrine\DBAL\Types\Types::DATE_IMMUTABLE, nullable: false)] - private ?\DateTimeImmutable $startDate = null + private ?\DateTimeImmutable $startDate = null, ) {} public function getCenter(): ?Center diff --git a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php index da5a72b77..0d0a59c87 100644 --- a/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php +++ b/src/Bundle/ChillPersonBundle/Entity/SocialWork/SocialAction.php @@ -403,7 +403,7 @@ class SocialAction return match ($actions instanceof ReadableCollection) { true => $actions->filter($filterFn), - false => array_filter($actions, $filterFn) + false => array_filter($actions, $filterFn), }; } } diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php index bc18315c1..94202d958 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/CreatorJobAggregator.php @@ -26,7 +26,7 @@ class CreatorJobAggregator implements AggregatorInterface public function __construct( private readonly UserJobRepository $jobRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php index e15539fb1..070122f2e 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/OriginAggregator.php @@ -26,7 +26,7 @@ final readonly class OriginAggregator implements AggregatorInterface public function __construct( EntityManagerInterface $em, - private TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper, ) { $this->repository = $em->getRepository(Origin::class); } diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregator.php index 8e987a606..2df724517 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingCourseAggregators/ReferrerAggregator.php @@ -31,7 +31,7 @@ final readonly class ReferrerAggregator implements AggregatorInterface, DataTran public function __construct( private UserRepository $userRepository, private UserRender $userRender, - private RollingDateConverterInterface $rollingDateConverter + private RollingDateConverterInterface $rollingDateConverter, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregator.php index e2494526a..b3be83da2 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/AccompanyingPeriodStepHistoryAggregators/ByStepAggregator.php @@ -26,7 +26,7 @@ final readonly class ByStepAggregator implements AggregatorInterface private const KEY = 'acpstephistory_step_agg'; public function __construct( - private TranslatorInterface $translator + private TranslatorInterface $translator, ) {} public function buildForm(FormBuilderInterface $builder) diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorAggregator.php index f7c203a4e..46cc85de6 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorAggregator.php @@ -24,7 +24,7 @@ class CreatorAggregator implements AggregatorInterface public function __construct( private readonly UserRepository $userRepository, - private readonly UserRender $userRender + private readonly UserRender $userRender, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorJobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorJobAggregator.php index 1f7fdca5a..c1b7c248b 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorJobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorJobAggregator.php @@ -26,7 +26,7 @@ class CreatorJobAggregator implements AggregatorInterface public function __construct( private readonly UserJobRepository $jobRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorScopeAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorScopeAggregator.php index c57607693..b38096079 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorScopeAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/CreatorScopeAggregator.php @@ -26,7 +26,7 @@ class CreatorScopeAggregator implements AggregatorInterface public function __construct( private readonly ScopeRepository $scopeRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php index c8336b09b..282a36db4 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/JobAggregator.php @@ -27,7 +27,7 @@ final readonly class JobAggregator implements AggregatorInterface public function __construct( private UserJobRepository $jobRepository, - private TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ReferrerAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ReferrerAggregator.php index c97229048..7543da857 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ReferrerAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ReferrerAggregator.php @@ -28,7 +28,7 @@ final readonly class ReferrerAggregator implements AggregatorInterface public function __construct( private UserRepository $userRepository, private UserRender $userRender, - private RollingDateConverterInterface $rollingDateConverter + private RollingDateConverterInterface $rollingDateConverter, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php index dfffaa9e4..0bedaf267 100644 --- a/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php +++ b/src/Bundle/ChillPersonBundle/Export/Aggregator/SocialWorkAggregators/ScopeAggregator.php @@ -27,7 +27,7 @@ final readonly class ScopeAggregator implements AggregatorInterface public function __construct( private ScopeRepository $scopeRepository, - private TranslatableStringHelper $translatableStringHelper + private TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod.php b/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod.php index ad3f8f745..18a0c54b0 100644 --- a/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod.php +++ b/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod.php @@ -29,7 +29,7 @@ class AvgDurationAPWorkPersonAssociatedOnAccompanyingPeriod implements ExportInt public function __construct( ParameterBagInterface $parameterBag, - private readonly AccompanyingPeriodWorkRepository $accompanyingPeriodWorkRepository + private readonly AccompanyingPeriodWorkRepository $accompanyingPeriodWorkRepository, ) { $this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center']; } diff --git a/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnWork.php b/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnWork.php index 8d34837ae..a8750e42c 100644 --- a/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnWork.php +++ b/src/Bundle/ChillPersonBundle/Export/Export/AvgDurationAPWorkPersonAssociatedOnWork.php @@ -29,7 +29,7 @@ class AvgDurationAPWorkPersonAssociatedOnWork implements ExportInterface, Groupe public function __construct( ParameterBagInterface $parameterBag, - private readonly AccompanyingPeriodWorkRepository $accompanyingPeriodWorkRepository + private readonly AccompanyingPeriodWorkRepository $accompanyingPeriodWorkRepository, ) { $this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center']; } diff --git a/src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php b/src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php index 1a1fd0316..69d00a612 100644 --- a/src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php +++ b/src/Bundle/ChillPersonBundle/Export/Export/ListPersonDuplicate.php @@ -51,7 +51,7 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat EntityManagerInterface $em, private readonly TranslatorInterface $translator, private readonly UrlGeneratorInterface $router, - $routeParameters + $routeParameters, ) { $this->entityManager = $em; $this->baseUrl = $routeParameters['scheme']. diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php index cc7e21b08..dd1264bd2 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/CreatorJobFilter.php @@ -28,7 +28,7 @@ class CreatorJobFilter implements FilterInterface public function __construct( private readonly TranslatableStringHelper $translatableStringHelper, - private readonly UserJobRepositoryInterface $userJobRepository + private readonly UserJobRepositoryInterface $userJobRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php index 7adf03d13..7d6d90e64 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/GeographicalUnitStatFilter.php @@ -37,7 +37,7 @@ class GeographicalUnitStatFilter implements FilterInterface private readonly GeographicalUnitRepositoryInterface $geographicalUnitRepository, private readonly GeographicalUnitLayerRepositoryInterface $geographicalUnitLayerRepository, private readonly TranslatableStringHelperInterface $translatableStringHelper, - private readonly RollingDateConverterInterface $rollingDateConverter + private readonly RollingDateConverterInterface $rollingDateConverter, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php index a5b43375f..6116e968b 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/ReferrerFilterBetweenDates.php @@ -41,7 +41,7 @@ final readonly class ReferrerFilterBetweenDates implements FilterInterface public function __construct( private RollingDateConverterInterface $rollingDateConverter, - private UserRender $userRender + private UserRender $userRender, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php index dc5ffa042..545c35f5e 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialActionFilter.php @@ -30,7 +30,7 @@ final readonly class SocialActionFilter implements FilterInterface public function __construct( private SocialActionRender $actionRender, private RollingDateConverterInterface $rollingDateConverter, - private TranslatorInterface $translator + private TranslatorInterface $translator, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialIssueFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialIssueFilter.php index 52010ff81..afcdd15bc 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialIssueFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingCourseFilters/SocialIssueFilter.php @@ -30,7 +30,7 @@ class SocialIssueFilter implements FilterInterface public function __construct( TranslatorInterface $translator, - private readonly SocialIssueRender $socialIssueRender + private readonly SocialIssueRender $socialIssueRender, ) { $this->translator = $translator; } diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByDateFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByDateFilter.php index 1625953f6..84a5814b3 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByDateFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/AccompanyingPeriodStepHistoryFilters/ByDateFilter.php @@ -32,7 +32,7 @@ use Symfony\Component\Form\FormBuilderInterface; final readonly class ByDateFilter implements FilterInterface { public function __construct( - private RollingDateConverterInterface $rollingDateConverter + private RollingDateConverterInterface $rollingDateConverter, ) {} public function getTitle() diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/HouseholdFilters/CompositionFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/HouseholdFilters/CompositionFilter.php index 733e41480..b9f9075ed 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/HouseholdFilters/CompositionFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/HouseholdFilters/CompositionFilter.php @@ -27,7 +27,7 @@ readonly class CompositionFilter implements FilterInterface { public function __construct( private TranslatableStringHelper $translatableStringHelper, - private RollingDateConverterInterface $rollingDateConverter + private RollingDateConverterInterface $rollingDateConverter, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorJobFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorJobFilter.php index 2b7a6ef07..3087d156e 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorJobFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorJobFilter.php @@ -28,7 +28,7 @@ class CreatorJobFilter implements FilterInterface public function __construct( private readonly UserJobRepository $userJobRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorScopeFilter.php index 16ed52755..414740c7a 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/CreatorScopeFilter.php @@ -28,7 +28,7 @@ class CreatorScopeFilter implements FilterInterface public function __construct( private readonly ScopeRepository $scopeRepository, - private readonly TranslatableStringHelper $translatableStringHelper + private readonly TranslatableStringHelper $translatableStringHelper, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php index e22c84696..9f2041aaa 100644 --- a/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php +++ b/src/Bundle/ChillPersonBundle/Export/Filter/SocialWorkFilters/ScopeFilter.php @@ -30,7 +30,7 @@ class ScopeFilter implements FilterInterface public function __construct( protected TranslatorInterface $translator, private readonly TranslatableStringHelper $translatableStringHelper, - private readonly ScopeRepositoryInterface $scopeRepository + private readonly ScopeRepositoryInterface $scopeRepository, ) {} public function addRole(): ?string diff --git a/src/Bundle/ChillPersonBundle/Export/Helper/ListAccompanyingPeriodHelper.php b/src/Bundle/ChillPersonBundle/Export/Helper/ListAccompanyingPeriodHelper.php index 87ed9eec0..f66a8b039 100644 --- a/src/Bundle/ChillPersonBundle/Export/Helper/ListAccompanyingPeriodHelper.php +++ b/src/Bundle/ChillPersonBundle/Export/Helper/ListAccompanyingPeriodHelper.php @@ -87,7 +87,7 @@ final readonly class ListAccompanyingPeriodHelper private TranslatorInterface $translator, private UserHelper $userHelper, private LabelPersonHelper $labelPersonHelper, - private CenterRepository $centerRepository + private CenterRepository $centerRepository, ) {} public function getQueryKeys($data) diff --git a/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php b/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php index 9de66b272..5b294e2f5 100644 --- a/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php +++ b/src/Bundle/ChillPersonBundle/Form/ChoiceLoader/PersonChoiceLoader.php @@ -27,7 +27,7 @@ class PersonChoiceLoader implements ChoiceLoaderInterface public function __construct( protected PersonRepository $personRepository, - ?array $centers = null + ?array $centers = null, ) { if (null !== $centers) { $this->centers = $centers; diff --git a/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php b/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php index 01814af38..9bfb75e31 100644 --- a/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php +++ b/src/Bundle/ChillPersonBundle/Form/CreationPersonType.php @@ -45,7 +45,7 @@ final class CreationPersonType extends AbstractType public function __construct( private readonly ConfigPersonAltNamesHelper $configPersonAltNamesHelper, private readonly EventDispatcherInterface $dispatcher, - ParameterBagInterface $parameterBag + ParameterBagInterface $parameterBag, ) { $this->askCenters = $parameterBag->get('chill_main')['acl']['form_show_centers']; } diff --git a/src/Bundle/ChillPersonBundle/Form/Type/ClosingMotivePickerType.php b/src/Bundle/ChillPersonBundle/Form/Type/ClosingMotivePickerType.php index 49e23f7c6..f1c01eb34 100644 --- a/src/Bundle/ChillPersonBundle/Form/Type/ClosingMotivePickerType.php +++ b/src/Bundle/ChillPersonBundle/Form/Type/ClosingMotivePickerType.php @@ -47,7 +47,7 @@ class ClosingMotivePickerType extends AbstractType public function __construct( TranslatableStringHelper $translatableStringHelper, ChillEntityRenderExtension $chillEntityRenderExtension, - ClosingMotiveRepository $closingMotiveRepository + ClosingMotiveRepository $closingMotiveRepository, ) { $this->translatableStringHelper = $translatableStringHelper; $this->entityRenderExtension = $chillEntityRenderExtension; diff --git a/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php b/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php index f8086369f..9ddee9c7e 100644 --- a/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php +++ b/src/Bundle/ChillPersonBundle/Form/Type/PickPersonType.php @@ -48,7 +48,7 @@ final class PickPersonType extends AbstractType private readonly TokenStorageInterface $tokenStorage, private readonly AuthorizationHelper $authorizationHelper, private readonly UrlGeneratorInterface $urlGenerator, - private readonly TranslatorInterface $translator + private readonly TranslatorInterface $translator, ) {} public function buildView(\Symfony\Component\Form\FormView $view, \Symfony\Component\Form\FormInterface $form, array $options) diff --git a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php index ee93efd6b..d5e1dfe59 100644 --- a/src/Bundle/ChillPersonBundle/Household/MembersEditor.php +++ b/src/Bundle/ChillPersonBundle/Household/MembersEditor.php @@ -41,7 +41,7 @@ class MembersEditor public function __construct( private readonly ValidatorInterface $validator, private readonly ?Household $household, - private readonly EventDispatcherInterface $eventDispatcher + private readonly EventDispatcherInterface $eventDispatcher, ) {} /** @@ -162,7 +162,7 @@ class MembersEditor */ public function leaveMovement( \DateTimeImmutable $date, - Person $person + Person $person, ): self { $criteria = new Criteria(); $expr = Criteria::expr(); diff --git a/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php b/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php index 5dce8c477..1984c4c93 100644 --- a/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php +++ b/src/Bundle/ChillPersonBundle/Menu/PersonMenuBuilder.php @@ -42,7 +42,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface ParameterBagInterface $parameterBag, private readonly Security $security, protected TranslatorInterface $translator, - private readonly ResidentialAddressRepository $residentialAddressRepo + private readonly ResidentialAddressRepository $residentialAddressRepo, ) { $this->showAccompanyingPeriod = $parameterBag->get('chill_person.accompanying_period'); } diff --git a/src/Bundle/ChillPersonBundle/Menu/UserMenuBuilder.php b/src/Bundle/ChillPersonBundle/Menu/UserMenuBuilder.php index 4e95d9275..7f7d2fe5a 100644 --- a/src/Bundle/ChillPersonBundle/Menu/UserMenuBuilder.php +++ b/src/Bundle/ChillPersonBundle/Menu/UserMenuBuilder.php @@ -29,7 +29,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface public $translator; public function __construct( - AuthorizationCheckerInterface $authorizationChecker + AuthorizationCheckerInterface $authorizationChecker, ) { $this->authorizationChecker = $authorizationChecker; } diff --git a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php index 00ffa47f5..7dfa9cb4b 100644 --- a/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php +++ b/src/Bundle/ChillPersonBundle/Privacy/PrivacyEventSubscriber.php @@ -44,7 +44,7 @@ final readonly class PrivacyEventSubscriber implements EventSubscriberInterface */ public function __construct( private LoggerInterface $logger, - private TokenStorageInterface $token + private TokenStorageInterface $token, ) {} public static function getSubscribedEvents() diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php index 32c2a6f80..ebd72e0b4 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepository.php @@ -39,7 +39,7 @@ final readonly class AccompanyingPeriodACLAwareRepository implements Accompanyin private AccompanyingPeriodRepository $accompanyingPeriodRepository, private Security $security, private AuthorizationHelperForCurrentUserInterface $authorizationHelper, - private CenterResolverManagerInterface $centerResolver + private CenterResolverManagerInterface $centerResolver, ) {} public function buildQueryOpenedAccompanyingCourseByUserAndPostalCodes(?User $user, array $postalCodes = []): QueryBuilder @@ -108,7 +108,7 @@ final readonly class AccompanyingPeriodACLAwareRepository implements Accompanyin string $role, ?array $orderBy = [], ?int $limit = null, - ?int $offset = null + ?int $offset = null, ): array { $qb = $this->accompanyingPeriodRepository->createQueryBuilder('ap'); $scopes = $this->authorizationHelper diff --git a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepositoryInterface.php b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepositoryInterface.php index ba3396af8..560917ac8 100644 --- a/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillPersonBundle/Repository/AccompanyingPeriodACLAwareRepositoryInterface.php @@ -41,7 +41,7 @@ interface AccompanyingPeriodACLAwareRepositoryInterface string $role, ?array $orderBy = [], ?int $limit = null, - ?int $offset = null + ?int $offset = null, ): array; /** diff --git a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepository.php index 26121ffdc..89a1c4e82 100644 --- a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepository.php @@ -85,7 +85,7 @@ final readonly class HouseholdACLAwareRepository implements HouseholdACLAwareRep public function findByAddressReference( AddressReference $addressReference, ?int $firstResult = 0, - ?int $maxResult = 50 + ?int $maxResult = 50, ): array { $qb = $this->buildQueryByAddressReference($addressReference); $qb = $this->addACL($qb); diff --git a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepositoryInterface.php b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepositoryInterface.php index fe8408f91..b634ab205 100644 --- a/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillPersonBundle/Repository/Household/HouseholdACLAwareRepositoryInterface.php @@ -24,6 +24,6 @@ interface HouseholdACLAwareRepositoryInterface public function findByAddressReference( AddressReference $addressReference, ?int $firstResult = 0, - ?int $maxResult = 50 + ?int $maxResult = 50, ): array; } diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php index 303773c3e..9e76dd374 100644 --- a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepository.php @@ -37,7 +37,7 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): SearchApiQuery { $query = $this->createSearchQuery( $default, @@ -65,7 +65,7 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): int { $query = $this->buildAuthorizedQuery( $default, @@ -99,7 +99,7 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): SearchApiQuery { $query = new SearchApiQuery(); $query @@ -256,7 +256,7 @@ final readonly class PersonACLAwareRepository implements PersonACLAwareRepositor ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): array { $query = $this->buildAuthorizedQuery( $default, diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepositoryInterface.php b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepositoryInterface.php index c327ecd40..7a45d6648 100644 --- a/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillPersonBundle/Repository/PersonACLAwareRepositoryInterface.php @@ -26,7 +26,7 @@ interface PersonACLAwareRepositoryInterface ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): SearchApiQuery; public function countBySearchCriteria( @@ -39,7 +39,7 @@ interface PersonACLAwareRepositoryInterface ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ); /** @@ -58,6 +58,6 @@ interface PersonACLAwareRepositoryInterface ?string $gender = null, ?string $countryCode = null, ?string $phonenumber = null, - ?string $city = null + ?string $city = null, ): array; } diff --git a/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php b/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php index b7104a843..6d6373999 100644 --- a/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php +++ b/src/Bundle/ChillPersonBundle/Repository/PersonRepository.php @@ -33,7 +33,7 @@ class PersonRepository implements ObjectRepository public function countByPhone( string $phonenumber, $centers, - array $only = ['mobile', 'phone'] + array $only = ['mobile', 'phone'], ): int { $qb = $this->repository->createQueryBuilder('p'); $qb->select('COUNT(p)'); @@ -77,7 +77,7 @@ class PersonRepository implements ObjectRepository $centers, $firstResult, $maxResults, - array $only = ['mobile', 'phone'] + array $only = ['mobile', 'phone'], ) { $qb = $this->repository->createQueryBuilder('p'); $qb->select('p'); diff --git a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php index 74deb91e1..e0020aff2 100644 --- a/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php +++ b/src/Bundle/ChillPersonBundle/Search/SimilarPersonMatcher.php @@ -45,7 +45,7 @@ class SimilarPersonMatcher AuthorizationHelper $authorizationHelper, TokenStorageInterface $tokenStorage, protected PersonNotDuplicateRepository $personNotDuplicateRepository, - protected PersonRenderInterface $personRender + protected PersonRenderInterface $personRender, ) { $this->em = $em; $this->authorizationHelper = $authorizationHelper; @@ -56,7 +56,7 @@ class SimilarPersonMatcher Person $person, float $precision = 0.30, string $orderBy = self::SIMILAR_SEARCH_ORDER_BY_SIMILARITY, - bool $addYearComparison = false + bool $addYearComparison = false, ) { $centers = $this->authorizationHelper->getReachableCenters( $this->tokenStorage->getToken()->getUser(), diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php index 9aadd3d95..4e609a620 100644 --- a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodVoter.php @@ -109,7 +109,7 @@ class AccompanyingPeriodVoter extends AbstractChillVoter implements ProvideRoleH public function __construct( private readonly Security $security, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkVoter.php index 64b25498c..58cb7390e 100644 --- a/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkVoter.php +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/AccompanyingPeriodWorkVoter.php @@ -43,7 +43,7 @@ class AccompanyingPeriodWorkVoter extends Voter implements ProvideRoleHierarchyI public function __construct( private readonly Security $security, - VoterHelperFactoryInterface $voterHelperFactory + VoterHelperFactoryInterface $voterHelperFactory, ) { $this->voterHelper = $voterHelperFactory ->generate(self::class) diff --git a/src/Bundle/ChillPersonBundle/Security/Authorization/PersonVoter.php b/src/Bundle/ChillPersonBundle/Security/Authorization/PersonVoter.php index 2de8a1554..5f41ba09b 100644 --- a/src/Bundle/ChillPersonBundle/Security/Authorization/PersonVoter.php +++ b/src/Bundle/ChillPersonBundle/Security/Authorization/PersonVoter.php @@ -36,7 +36,7 @@ class PersonVoter extends AbstractChillVoter implements ProvideRoleHierarchyInte protected VoterHelperInterface $voter; public function __construct( - VoterHelperFactoryInterface $voterFactory + VoterHelperFactoryInterface $voterFactory, ) { $this->voter = $voterFactory ->generate(self::class) diff --git a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php index eae33f399..d39a69d73 100644 --- a/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php +++ b/src/Bundle/ChillPersonBundle/Serializer/Normalizer/PersonJsonNormalizer.php @@ -47,7 +47,7 @@ class PersonJsonNormalizer implements DenormalizerAwareInterface, NormalizerAwar private readonly PersonRepository $repository, private readonly CenterResolverManagerInterface $centerResolverManager, private readonly ResidentialAddressRepository $residentialAddressRepository, - private readonly PhoneNumberHelperInterface $phoneNumberHelper + private readonly PhoneNumberHelperInterface $phoneNumberHelper, ) {} public function denormalize($data, $type, $format = null, array $context = []) diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php index 61edc0205..96054b59f 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/AccompanyingPeriodContext.php @@ -59,7 +59,7 @@ class AccompanyingPeriodContext implements private readonly TranslatorInterface $translator, private readonly BaseContextData $baseContextData, private readonly ThirdPartyRender $thirdPartyRender, - private readonly ThirdPartyRepository $thirdPartyRepository + private readonly ThirdPartyRepository $thirdPartyRepository, ) {} public function adminFormReverseTransform(array $data): array diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php index 890fa40ff..eb588cdaf 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContext.php @@ -65,7 +65,7 @@ final readonly class PersonContext implements PersonContextInterface private TranslatableStringHelperInterface $translatableStringHelper, private ThirdPartyRender $thirdPartyRender, private ThirdPartyRepository $thirdPartyRepository, - private ResidentialAddressRepository $residentialAddressRepository + private ResidentialAddressRepository $residentialAddressRepository, ) { $this->showScopes = $parameterBag->get('chill_main')['acl']['form_show_scopes']; } diff --git a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContextWithThirdParty.php b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContextWithThirdParty.php index 7f142fdbf..2386f0655 100644 --- a/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContextWithThirdParty.php +++ b/src/Bundle/ChillPersonBundle/Service/DocGenerator/PersonContextWithThirdParty.php @@ -30,7 +30,7 @@ class PersonContextWithThirdParty implements DocGeneratorContextWithAdminFormInt public function __construct( private readonly PersonContextInterface $personContext, private readonly NormalizerInterface $normalizer, - private readonly ThirdPartyRepository $thirdPartyRepository + private readonly ThirdPartyRepository $thirdPartyRepository, ) {} public function adminFormReverseTransform(array $data): array diff --git a/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php b/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php index 21406072d..3086ee31a 100644 --- a/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php +++ b/src/Bundle/ChillPersonBundle/Service/Import/SocialWorkMetadata.php @@ -226,7 +226,7 @@ final readonly class SocialWorkMetadata implements SocialWorkMetadataInterface float $orderingParent, float $orderingChild, ?SocialAction $previousSocialAction, - ?SocialAction $previousSocialActionChild + ?SocialAction $previousSocialActionChild, ): array { if (null === $socialActionTitle) { return [ @@ -275,7 +275,7 @@ final readonly class SocialWorkMetadata implements SocialWorkMetadataInterface float $orderingParent, float $orderingChild, ?SocialIssue $previousSocialIssue, - ?SocialIssue $previousSocialIssueChild + ?SocialIssue $previousSocialIssueChild, ): array { $return = []; diff --git a/src/Bundle/ChillPersonBundle/Templating/Entity/ClosingMotiveRender.php b/src/Bundle/ChillPersonBundle/Templating/Entity/ClosingMotiveRender.php index 29ed4226a..51587d715 100644 --- a/src/Bundle/ChillPersonBundle/Templating/Entity/ClosingMotiveRender.php +++ b/src/Bundle/ChillPersonBundle/Templating/Entity/ClosingMotiveRender.php @@ -29,7 +29,7 @@ final readonly class ClosingMotiveRender implements ChillEntityRenderInterface public function __construct( private TranslatableStringHelperInterface $translatableStringHelper, - private TranslatorInterface $translator + private TranslatorInterface $translator, ) {} public function renderBox($entity, array $options): string diff --git a/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/Events/PersonMoveEventSubscriberTest.php b/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/Events/PersonMoveEventSubscriberTest.php index bb833c96b..83d8518c0 100644 --- a/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/Events/PersonMoveEventSubscriberTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/Events/PersonMoveEventSubscriberTest.php @@ -247,7 +247,7 @@ final class PersonMoveEventSubscriberTest extends KernelTestCase ?\Twig\Environment $engine = null, ?NotificationPersisterInterface $notificationPersister = null, ?Security $security = null, - ?TranslatorInterface $translator = null + ?TranslatorInterface $translator = null, ): PersonAddressMoveEventSubscriber { if (null === $translator) { $double = $this->prophesize(TranslatorInterface::class); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index 900a08ebd..75ad19d33 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -222,7 +222,7 @@ final class PersonControllerCreateTest extends WebTestCase Form &$creationForm, string $firstname = 'God', string $lastname = 'Jesus', - ?\DateTime $birthdate = null + ?\DateTime $birthdate = null, ) { $creationForm->get(self::FIRSTNAME_INPUT)->setValue($firstname.'_'.uniqid()); $creationForm->get(self::LASTNAME_INPUT)->setValue($lastname.'_'.uniqid()); diff --git a/src/Bundle/ChillPersonBundle/Tests/Household/MembersEditorTest.php b/src/Bundle/ChillPersonBundle/Tests/Household/MembersEditorTest.php index 99515562c..4e7f0dd9c 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Household/MembersEditorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Household/MembersEditorTest.php @@ -562,7 +562,7 @@ final class MembersEditorTest extends TestCase private function buildMembersEditorFactory( ?EventDispatcherInterface $eventDispatcher = null, - ?ValidatorInterface $validator = null + ?ValidatorInterface $validator = null, ) { if (null === $eventDispatcher) { $double = $this->getProphet()->prophesize(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonDocGenNormalizerTest.php b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonDocGenNormalizerTest.php index 4c7ceee42..e3ba0e196 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonDocGenNormalizerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonDocGenNormalizerTest.php @@ -242,7 +242,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase ?TranslatorInterface $translator = null, ?TranslatableStringHelper $translatableStringHelper = null, ?NormalizerInterface $normalizer = null, - ?SummaryBudgetInterface $summaryBudget = null + ?SummaryBudgetInterface $summaryBudget = null, ): PersonDocGenNormalizer { if (null === $summaryBudget) { $summaryBudget = $this->prophesize(SummaryBudgetInterface::class); @@ -278,7 +278,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase ?RelationshipRepository $relationshipRepository = null, ?TranslatorInterface $translator = null, ?TranslatableStringHelper $translatableStringHelper = null, - ?SummaryBudgetInterface $summaryBudget = null + ?SummaryBudgetInterface $summaryBudget = null, ): PersonDocGenNormalizer { if (null === $relationshipRepository) { $relationshipRepository = $this->prophesize(RelationshipRepository::class); diff --git a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonNormalizerTest.php b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonNormalizerTest.php index f60278d5f..af78e2475 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonNormalizerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Serializer/Normalizer/PersonJsonNormalizerTest.php @@ -68,7 +68,7 @@ final class PersonJsonNormalizerTest extends KernelTestCase CenterResolverManagerInterface $centerResolverManager, ResidentialAddressRepository $residentialAddressRepository, PhoneNumberHelperInterface $phoneNumberHelper, - NormalizerInterface $normalizer + NormalizerInterface $normalizer, ): PersonJsonNormalizer { $personJsonNormalizer = new PersonJsonNormalizer( $render, diff --git a/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/AccompanyingPeriodContextTest.php b/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/AccompanyingPeriodContextTest.php index c73de9f78..48832b259 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/AccompanyingPeriodContextTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/AccompanyingPeriodContextTest.php @@ -105,7 +105,7 @@ class AccompanyingPeriodContextTest extends KernelTestCase AccompanyingPeriod $entity, array $data, array $expectedNormalized, - callable $assertionsOnData + callable $assertionsOnData, ): void { $context = $this->buildContext(); $template = new DocGeneratorTemplate(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/PersonContextTest.php b/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/PersonContextTest.php index ff360ccaa..8d46105f5 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/PersonContextTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Service/DocGenerator/PersonContextTest.php @@ -77,7 +77,7 @@ final class PersonContextTest extends KernelTestCase Person $entity, array $data, array $expectedNormalized, - callable $assertionsOnData + callable $assertionsOnData, ): void { // we boot kernel only for this test self::bootKernel(); @@ -354,7 +354,7 @@ final class PersonContextTest extends KernelTestCase ?TranslatableStringHelperInterface $translatableStringHelper = null, ?ThirdPartyRender $thirdPartyRender = null, ?ThirdPartyRepository $thirdPartyRepository = null, - ?ResidentialAddressRepository $residentialAddressRepository = null + ?ResidentialAddressRepository $residentialAddressRepository = null, ): PersonContext { if (null === $authorizationHelper) { $authorizationHelper = $this->prophesize(AuthorizationHelperInterface::class)->reveal(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Service/GenericDoc/Providers/AccompanyingPeriodWorkEvaluationGenericDocProviderTest.php b/src/Bundle/ChillPersonBundle/Tests/Service/GenericDoc/Providers/AccompanyingPeriodWorkEvaluationGenericDocProviderTest.php index 8d49a54e8..a90d5f751 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Service/GenericDoc/Providers/AccompanyingPeriodWorkEvaluationGenericDocProviderTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Service/GenericDoc/Providers/AccompanyingPeriodWorkEvaluationGenericDocProviderTest.php @@ -41,7 +41,7 @@ class AccompanyingPeriodWorkEvaluationGenericDocProviderTest extends KernelTestC public function testBuildFetchQueryForAccompanyingPeriod( ?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $endDate = null, - ?string $content = null + ?string $content = null, ): void { $period = $this->entityManager->createQuery('SELECT a FROM '.AccompanyingPeriod::class.' a') ->setMaxResults(1) diff --git a/src/Bundle/ChillPersonBundle/Validator/Constraints/Person/BirthdateValidator.php b/src/Bundle/ChillPersonBundle/Validator/Constraints/Person/BirthdateValidator.php index 1a7634136..2e65f1f25 100644 --- a/src/Bundle/ChillPersonBundle/Validator/Constraints/Person/BirthdateValidator.php +++ b/src/Bundle/ChillPersonBundle/Validator/Constraints/Person/BirthdateValidator.php @@ -25,7 +25,7 @@ class BirthdateValidator extends ConstraintValidator public function __construct( private readonly ParameterBagInterface $parameterBag, - private readonly ClockInterface $clock + private readonly ClockInterface $clock, ) { $this->interval_spec = $this->parameterBag->get('chill_person')['validation']['birthdate_not_after']; } diff --git a/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php b/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php index ef150f91d..bf1274d72 100644 --- a/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php +++ b/src/Bundle/ChillPersonBundle/Widget/AddAPersonWidget.php @@ -23,7 +23,7 @@ class AddAPersonWidget implements WidgetInterface Environment $env, $place, array $context, - array $config + array $config, ) { return $env->render('@ChillPerson/Widget/homepage_add_a_person.html.twig'); } diff --git a/src/Bundle/ChillReportBundle/Controller/ReportController.php b/src/Bundle/ChillReportBundle/Controller/ReportController.php index 13c16672b..644bc7c65 100644 --- a/src/Bundle/ChillReportBundle/Controller/ReportController.php +++ b/src/Bundle/ChillReportBundle/Controller/ReportController.php @@ -37,7 +37,7 @@ class ReportController extends AbstractController private readonly AuthorizationHelper $authorizationHelper, private readonly PaginatorFactory $paginator, private readonly TranslatorInterface $translator, - private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry + private readonly \Doctrine\Persistence\ManagerRegistry $managerRegistry, ) {} /** diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php index af2f06e69..6e4639210 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadCustomFieldsGroup.php @@ -60,7 +60,7 @@ class LoadCustomFieldsGroup extends AbstractFixture implements OrderedFixtureInt private function createReport( ObjectManager $manager, array $name, - array $options = [] + array $options = [], ) { echo $name['fr']." \n"; diff --git a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php index 6c61b1914..222458a25 100644 --- a/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php +++ b/src/Bundle/ChillReportBundle/DataFixtures/ORM/LoadReports.php @@ -30,7 +30,7 @@ final class LoadReports extends AbstractFixture implements OrderedFixtureInterfa private readonly \Faker\Generator $faker; public function __construct( - private readonly EntityManagerInterface $entityManager + private readonly EntityManagerInterface $entityManager, ) { $this->faker = FakerFactory::create('fr_FR'); } diff --git a/src/Bundle/ChillReportBundle/Export/Export/ReportListProvider.php b/src/Bundle/ChillReportBundle/Export/Export/ReportListProvider.php index 082c1ef4a..fcc21e726 100644 --- a/src/Bundle/ChillReportBundle/Export/Export/ReportListProvider.php +++ b/src/Bundle/ChillReportBundle/Export/Export/ReportListProvider.php @@ -45,7 +45,7 @@ class ReportListProvider implements ExportElementsProviderInterface EntityManagerInterface $em, TranslatableStringHelper $translatableStringHelper, TranslatorInterface $translator, - CustomFieldProvider $customFieldProvider + CustomFieldProvider $customFieldProvider, ) { $this->em = $em; $this->translatableStringHelper = $translatableStringHelper; diff --git a/src/Bundle/ChillReportBundle/Form/ReportType.php b/src/Bundle/ChillReportBundle/Form/ReportType.php index 9d979458a..c680e496f 100644 --- a/src/Bundle/ChillReportBundle/Form/ReportType.php +++ b/src/Bundle/ChillReportBundle/Form/ReportType.php @@ -31,7 +31,7 @@ final class ReportType extends AbstractType private readonly AuthorizationHelper $authorizationHelper, private readonly TokenStorageInterface $tokenStorage, private readonly TranslatableStringHelper $translatableStringHelper, - private readonly ObjectManager $om + private readonly ObjectManager $om, ) {} public function buildForm(FormBuilderInterface $builder, array $options) diff --git a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php index e5270c038..30472ace8 100644 --- a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php @@ -411,7 +411,7 @@ final class ReportControllerTest extends WebTestCase protected function getReportForm( Person $person, CustomFieldsGroup $group, - \Symfony\Component\BrowserKit\AbstractBrowser $client + \Symfony\Component\BrowserKit\AbstractBrowser $client, ) { $url = sprintf( 'fr/person/%d/report/cfgroup/%d/new', diff --git a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php index 6c0769e56..c71051821 100644 --- a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php @@ -132,7 +132,7 @@ final class ReportVoterTest extends KernelTestCase Report $report, $action, $message, - ?User $user = null + ?User $user = null, ) { $token = $this->prepareToken($user); $result = $this->voter->vote($token, $report, [$action]); diff --git a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php index 0c3b8a7ba..9b97809dd 100644 --- a/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php +++ b/src/Bundle/ChillTaskBundle/Controller/SingleTaskController.php @@ -160,7 +160,7 @@ final class SingleTaskController extends AbstractController #[Route(path: '/{_locale}/task/single-task/{id}/edit', name: 'chill_task_single_task_edit')] public function editAction( SingleTask $task, - Request $request + Request $request, ) { $this->denyAccessUnlessGranted(TaskVoter::UPDATE, $task, 'You are not ' .'allowed to edit this task'); @@ -250,7 +250,7 @@ final class SingleTaskController extends AbstractController */ #[Route(path: '/{_locale}/task/single-task/list', name: 'chill_task_singletask_list')] public function listAction( - Request $request + Request $request, ) { $this->denyAccessUnlessGranted(TaskVoter::SHOW, null); @@ -305,7 +305,7 @@ final class SingleTaskController extends AbstractController public function listCourseTasks( AccompanyingPeriod $course, FormFactoryInterface $formFactory, - Request $request + Request $request, ): Response { $this->denyAccessUnlessGranted(TaskVoter::SHOW, $course); @@ -350,7 +350,7 @@ final class SingleTaskController extends AbstractController #[Route(path: '/{_locale}/task/single-task/by-person/{id}', name: 'chill_task_singletask_by-person_list')] public function listPersonTasks( - Person $person + Person $person, ): Response { $this->denyAccessUnlessGranted(TaskVoter::SHOW, $person); diff --git a/src/Bundle/ChillTaskBundle/Controller/TaskController.php b/src/Bundle/ChillTaskBundle/Controller/TaskController.php index 8837dda05..2b6c3d0bb 100644 --- a/src/Bundle/ChillTaskBundle/Controller/TaskController.php +++ b/src/Bundle/ChillTaskBundle/Controller/TaskController.php @@ -52,7 +52,7 @@ class TaskController extends AbstractController EntityManagerInterface $em, Request $request, TranslatorInterface $translator, - EventDispatcherInterface $eventDispatcher + EventDispatcherInterface $eventDispatcher, ) { switch ($kind) { case 'single-task': diff --git a/src/Bundle/ChillTaskBundle/Event/Lifecycle/TaskLifecycleEvent.php b/src/Bundle/ChillTaskBundle/Event/Lifecycle/TaskLifecycleEvent.php index e6966f16e..280eddeea 100644 --- a/src/Bundle/ChillTaskBundle/Event/Lifecycle/TaskLifecycleEvent.php +++ b/src/Bundle/ChillTaskBundle/Event/Lifecycle/TaskLifecycleEvent.php @@ -32,7 +32,7 @@ class TaskLifecycleEvent implements EventSubscriberInterface public function __construct( TokenStorageInterface $tokenStorage, - EntityManagerInterface $em + EntityManagerInterface $em, ) { $this->tokenStorage = $tokenStorage; $this->em = $em; diff --git a/src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php b/src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php index e0221545b..e4f92341d 100644 --- a/src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php +++ b/src/Bundle/ChillTaskBundle/Form/SingleTaskListType.php @@ -55,7 +55,7 @@ class SingleTaskListType extends AbstractType EntityManagerInterface $em, TokenStorageInterface $tokenStorage, AuthorizationHelper $authorizationHelper, - TaskWorkflowManager $taskWorkflowManager + TaskWorkflowManager $taskWorkflowManager, ) { $this->em = $em; $this->tokenStorage = $tokenStorage; diff --git a/src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php b/src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php index 6b710744d..eb35cd913 100644 --- a/src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php +++ b/src/Bundle/ChillTaskBundle/Menu/MenuBuilder.php @@ -32,7 +32,7 @@ class MenuBuilder implements LocalMenuBuilderInterface public function __construct( AuthorizationCheckerInterface $authorizationChecker, - TranslatorInterface $translator + TranslatorInterface $translator, ) { $this->translator = $translator; $this->authorizationChecker = $authorizationChecker; diff --git a/src/Bundle/ChillTaskBundle/Menu/SectionMenuBuilder.php b/src/Bundle/ChillTaskBundle/Menu/SectionMenuBuilder.php index 9b5ace64e..052eb5d9b 100644 --- a/src/Bundle/ChillTaskBundle/Menu/SectionMenuBuilder.php +++ b/src/Bundle/ChillTaskBundle/Menu/SectionMenuBuilder.php @@ -31,7 +31,7 @@ class SectionMenuBuilder implements LocalMenuBuilderInterface public function __construct( AuthorizationCheckerInterface $authorizationChecker, - TranslatorInterface $translator + TranslatorInterface $translator, ) { $this->authorizationChecker = $authorizationChecker; $this->translator = $translator; diff --git a/src/Bundle/ChillTaskBundle/Menu/UserMenuBuilder.php b/src/Bundle/ChillTaskBundle/Menu/UserMenuBuilder.php index 7f1f8fde8..32d7ebd03 100644 --- a/src/Bundle/ChillTaskBundle/Menu/UserMenuBuilder.php +++ b/src/Bundle/ChillTaskBundle/Menu/UserMenuBuilder.php @@ -25,7 +25,7 @@ final readonly class UserMenuBuilder implements LocalMenuBuilderInterface private CountNotificationTask $counter, private TokenStorageInterface $tokenStorage, private TranslatorInterface $translator, - private AuthorizationCheckerInterface $authorizationChecker + private AuthorizationCheckerInterface $authorizationChecker, ) {} public function buildMenu($menuId, MenuItem $menu, array $parameters) diff --git a/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepository.php b/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepository.php index 3f0966a45..56a750220 100644 --- a/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepository.php +++ b/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepository.php @@ -29,7 +29,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?string $pattern = null, ?array $flags = [], ?array $types = [], - ?array $users = [] + ?array $users = [], ): QueryBuilder { $qb = $this->em->createQueryBuilder(); $qb @@ -149,7 +149,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function buildQueryByCourse( AccompanyingPeriod $course, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): QueryBuilder { $qb = $this->buildBaseQuery($pattern, $flags); @@ -161,7 +161,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function buildQueryByPerson( Person $person, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): QueryBuilder { $qb = $this->buildBaseQuery($pattern, $flags); @@ -172,7 +172,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function buildQueryMyTasks( ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): QueryBuilder { $qb = $this->buildBaseQuery($pattern, $flags); @@ -185,7 +185,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?string $pattern = null, ?array $flags = [], ?array $types = [], - ?array $users = [] + ?array $users = [], ): int { $qb = $this->buildBaseQuery($pattern, $flags, $types, $users); @@ -198,7 +198,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function countByCourse( AccompanyingPeriod $course, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): int { $qb = $this->buildQueryByCourse($course, $pattern, $flags); @@ -210,7 +210,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function countByCurrentUsersTasks( ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): int { return $this->buildQueryMyTasks($pattern, $flags) ->select('COUNT(t)') @@ -220,7 +220,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR public function countByPerson( Person $person, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): int { $qb = $this->buildQueryByPerson($person, $pattern, $flags); @@ -237,7 +237,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?array $users = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array { $qb = $this->buildBaseQuery($pattern, $flags, $types, $users); $qb = $this->addACLGlobal($qb); @@ -251,7 +251,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?array $flags = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array { $qb = $this->buildQueryByCourse($course, $pattern, $flags); $qb = $this->addACL($qb, $course); @@ -264,7 +264,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?array $flags = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array { $qb = $this->buildQueryMyTasks($pattern, $flags); @@ -277,7 +277,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR ?array $flags = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array { $qb = $this->buildQueryByPerson($person, $pattern, $flags); $qb = $this->addACL($qb, $person); @@ -289,7 +289,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR QueryBuilder $qb, ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array { $qb->select('t'); @@ -306,7 +306,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR private function addACL( QueryBuilder $qb, - $entity + $entity, ): QueryBuilder { foreach ($this->centerResolverDispatcher->resolveCenters($entity) as $center) { $scopes = $this->authorizationHelper->getReachableScopes( @@ -323,7 +323,7 @@ final readonly class SingleTaskAclAwareRepository implements SingleTaskAclAwareR } private function addACLGlobal( - QueryBuilder $qb + QueryBuilder $qb, ): QueryBuilder { $allowedCenters = $this->authorizationHelper ->getReachableCenters($this->security->getUser(), TaskVoter::SHOW); diff --git a/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepositoryInterface.php b/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepositoryInterface.php index bb63c0caa..f535791ea 100644 --- a/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepositoryInterface.php +++ b/src/Bundle/ChillTaskBundle/Repository/SingleTaskAclAwareRepositoryInterface.php @@ -20,13 +20,13 @@ interface SingleTaskAclAwareRepositoryInterface ?string $pattern = null, ?array $flags = [], ?array $types = [], - ?array $users = [] + ?array $users = [], ): int; public function countByCourse( AccompanyingPeriod $course, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): int; public function countByCurrentUsersTasks(?string $pattern = null, ?array $flags = []): int; @@ -34,7 +34,7 @@ interface SingleTaskAclAwareRepositoryInterface public function countByPerson( Person $person, ?string $pattern = null, - ?array $flags = [] + ?array $flags = [], ): int; public function findByAllViewable( @@ -44,7 +44,7 @@ interface SingleTaskAclAwareRepositoryInterface ?array $users = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array; public function findByCourse( @@ -53,7 +53,7 @@ interface SingleTaskAclAwareRepositoryInterface ?array $flags = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array; public function findByCurrentUsersTasks(?string $pattern = null, ?array $flags = [], ?int $start = 0, ?int $limit = 50, ?array $orderBy = []): array; @@ -64,6 +64,6 @@ interface SingleTaskAclAwareRepositoryInterface ?array $flags = [], ?int $start = 0, ?int $limit = 50, - ?array $orderBy = [] + ?array $orderBy = [], ): array; } diff --git a/src/Bundle/ChillTaskBundle/Repository/SingleTaskStateRepository.php b/src/Bundle/ChillTaskBundle/Repository/SingleTaskStateRepository.php index 614870264..f1be255a6 100644 --- a/src/Bundle/ChillTaskBundle/Repository/SingleTaskStateRepository.php +++ b/src/Bundle/ChillTaskBundle/Repository/SingleTaskStateRepository.php @@ -21,7 +21,7 @@ class SingleTaskStateRepository SQL; public function __construct( - private readonly Connection $connection + private readonly Connection $connection, ) {} /** diff --git a/src/Bundle/ChillTaskBundle/Security/Authorization/AuthorizationEvent.php b/src/Bundle/ChillTaskBundle/Security/Authorization/AuthorizationEvent.php index 2b39ead51..ff97930c5 100644 --- a/src/Bundle/ChillTaskBundle/Security/Authorization/AuthorizationEvent.php +++ b/src/Bundle/ChillTaskBundle/Security/Authorization/AuthorizationEvent.php @@ -28,7 +28,7 @@ class AuthorizationEvent extends \Symfony\Contracts\EventDispatcher\Event public function __construct( private readonly AbstractTask|AccompanyingPeriod|Person|null $subject, private readonly string $attribute, - private readonly TokenInterface $token + private readonly TokenInterface $token, ) {} public function getAttribute() diff --git a/src/Bundle/ChillTaskBundle/Security/Authorization/TaskVoter.php b/src/Bundle/ChillTaskBundle/Security/Authorization/TaskVoter.php index cc3992329..daee05133 100644 --- a/src/Bundle/ChillTaskBundle/Security/Authorization/TaskVoter.php +++ b/src/Bundle/ChillTaskBundle/Security/Authorization/TaskVoter.php @@ -52,7 +52,7 @@ final class TaskVoter extends AbstractChillVoter implements ProvideRoleHierarchy private readonly AccessDecisionManagerInterface $accessDecisionManager, private readonly EventDispatcherInterface $eventDispatcher, private readonly LoggerInterface $logger, - VoterHelperFactoryInterface $voterFactory + VoterHelperFactoryInterface $voterFactory, ) { $this->voter = $voterFactory ->generate(AbstractTask::class) diff --git a/src/Bundle/ChillTaskBundle/Templating/TaskTwigExtension.php b/src/Bundle/ChillTaskBundle/Templating/TaskTwigExtension.php index affaab8c7..5ab051c03 100644 --- a/src/Bundle/ChillTaskBundle/Templating/TaskTwigExtension.php +++ b/src/Bundle/ChillTaskBundle/Templating/TaskTwigExtension.php @@ -39,7 +39,7 @@ class TaskTwigExtension extends AbstractExtension AbstractTask $task, string $key, $metadataSubject = null, - ?string $name = null + ?string $name = null, ) { return $this->taskWorkflowManager->getWorkflowMetadata($task, $key, $metadataSubject, $name); } diff --git a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php index c442dda8f..7c2768682 100644 --- a/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php +++ b/src/Bundle/ChillTaskBundle/Templating/UI/CountNotificationTask.php @@ -34,7 +34,7 @@ class CountNotificationTask implements NotificationCounterInterface public function __construct( SingleTaskRepository $singleTaskRepository, - CacheItemPoolInterface $cachePool + CacheItemPoolInterface $cachePool, ) { $this->singleTaskRepository = $singleTaskRepository; $this->cachePool = $cachePool; diff --git a/src/Bundle/ChillTaskBundle/Workflow/Definition/DefaultTaskDefinition.php b/src/Bundle/ChillTaskBundle/Workflow/Definition/DefaultTaskDefinition.php index 0f38252d8..8263ea652 100644 --- a/src/Bundle/ChillTaskBundle/Workflow/Definition/DefaultTaskDefinition.php +++ b/src/Bundle/ChillTaskBundle/Workflow/Definition/DefaultTaskDefinition.php @@ -53,7 +53,7 @@ class DefaultTaskDefinition implements \Chill\TaskBundle\Workflow\TaskWorkflowDe public function getWorkflowMetadata( AbstractTask $task, string $key, - $metadataSubject = null + $metadataSubject = null, ) { $keys = \explode('.', $key); diff --git a/src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php b/src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php index 30082d90b..13641ba31 100644 --- a/src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php +++ b/src/Bundle/ChillThirdPartyBundle/Controller/ThirdPartyController.php @@ -37,7 +37,7 @@ final class ThirdPartyController extends CRUDController protected PaginatorFactory $paginatorFactory, protected RequestStack $requestStack, protected ThirdPartyACLAwareRepositoryInterface $thirdPartyACLAwareRepository, - ParameterBagInterface $parameterBag + ParameterBagInterface $parameterBag, ) { $this->askCenter = $parameterBag->get('chill_main')['acl']['form_show_centers']; } diff --git a/src/Bundle/ChillThirdPartyBundle/Form/ThirdPartyType.php b/src/Bundle/ChillThirdPartyBundle/Form/ThirdPartyType.php index 046d553e9..26ed31d32 100644 --- a/src/Bundle/ChillThirdPartyBundle/Form/ThirdPartyType.php +++ b/src/Bundle/ChillThirdPartyBundle/Form/ThirdPartyType.php @@ -44,7 +44,7 @@ class ThirdPartyType extends AbstractType protected ThirdPartyTypeManager $typesManager, protected TranslatableStringHelper $translatableStringHelper, protected EntityManagerInterface $om, - ParameterBagInterface $parameterBag + ParameterBagInterface $parameterBag, ) { $this->askCenter = $parameterBag->get('chill_main')['acl']['form_show_centers']; } diff --git a/src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyType.php b/src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyType.php index 85fe9fe7a..9e79ff813 100644 --- a/src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyType.php +++ b/src/Bundle/ChillThirdPartyBundle/Form/Type/PickThirdPartyType.php @@ -55,7 +55,7 @@ class PickThirdPartyType extends AbstractType EntityManagerInterface $em, UrlGeneratorInterface $urlGenerator, TranslatorInterface $translator, - ThirdPartyTypeManager $typesManager + ThirdPartyTypeManager $typesManager, ) { $this->em = $em; $this->urlGenerator = $urlGenerator; diff --git a/src/Bundle/ChillThirdPartyBundle/Menu/MenuBuilder.php b/src/Bundle/ChillThirdPartyBundle/Menu/MenuBuilder.php index b66a3a552..dda6d2d99 100644 --- a/src/Bundle/ChillThirdPartyBundle/Menu/MenuBuilder.php +++ b/src/Bundle/ChillThirdPartyBundle/Menu/MenuBuilder.php @@ -34,7 +34,7 @@ class MenuBuilder implements LocalMenuBuilderInterface public function __construct( AuthorizationCheckerInterface $authorizationChecker, - TranslatorInterface $translator + TranslatorInterface $translator, ) { $this->authorizationChecker = $authorizationChecker; $this->translator = $translator; diff --git a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepository.php b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepository.php index 04246d8c8..3bada1f33 100644 --- a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepository.php +++ b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepository.php @@ -39,7 +39,7 @@ final readonly class ThirdPartyACLAwareRepository implements ThirdPartyACLAwareR public function countThirdParties( string $role, - ?string $filterString + ?string $filterString, ): int { $qb = $this->buildQuery($filterString); $qb->select('count(tp)'); @@ -52,7 +52,7 @@ final readonly class ThirdPartyACLAwareRepository implements ThirdPartyACLAwareR ?string $filterString, ?array $orderBy = [], ?int $limit = null, - ?int $offset = null + ?int $offset = null, ): array { $qb = $this->buildQuery($filterString); diff --git a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepositoryInterface.php b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepositoryInterface.php index a63100aef..9c5dde0ff 100644 --- a/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepositoryInterface.php +++ b/src/Bundle/ChillThirdPartyBundle/Repository/ThirdPartyACLAwareRepositoryInterface.php @@ -25,6 +25,6 @@ interface ThirdPartyACLAwareRepositoryInterface ?string $filterString, ?array $orderBy = [], ?int $limit = 0, - ?int $offset = 50 + ?int $offset = 50, ): array; } diff --git a/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartySearch.php b/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartySearch.php index 8b8f724d0..065bc16ac 100644 --- a/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartySearch.php +++ b/src/Bundle/ChillThirdPartyBundle/Search/ThirdPartySearch.php @@ -51,7 +51,7 @@ class ThirdPartySearch implements SearchInterface TokenStorageInterface $tokenStorage, AuthorizationHelper $authorizationHelper, PaginatorFactory $paginatorFactory, - private readonly ThirdPartyRepository $thirdPartyRepository + private readonly ThirdPartyRepository $thirdPartyRepository, ) { $this->em = $em; $this->tokenStorage = $tokenStorage; diff --git a/src/Bundle/ChillWopiBundle/src/Controller/Convert.php b/src/Bundle/ChillWopiBundle/src/Controller/Convert.php index 3b2744b28..16be18803 100644 --- a/src/Bundle/ChillWopiBundle/src/Controller/Convert.php +++ b/src/Bundle/ChillWopiBundle/src/Controller/Convert.php @@ -46,7 +46,7 @@ class Convert private readonly Security $security, private readonly StoredObjectManagerInterface $storedObjectManager, private readonly LoggerInterface $logger, - ParameterBagInterface $parameters + ParameterBagInterface $parameters, ) { $this->collaboraDomain = $parameters->get('wopi')['server']; } diff --git a/src/Bundle/ChillWopiBundle/src/Service/Controller/Responder.php b/src/Bundle/ChillWopiBundle/src/Service/Controller/Responder.php index 89eec1685..0bf5b7788 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Controller/Responder.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Controller/Responder.php @@ -27,7 +27,7 @@ final readonly class Responder implements ResponderInterface public function file( $file, ?string $filename = null, - string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT + string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT, ): BinaryFileResponse { $response = new BinaryFileResponse($file); @@ -41,7 +41,7 @@ final readonly class Responder implements ResponderInterface $data, int $status = 200, array $headers = [], - array $context = [] + array $context = [], ): JsonResponse { return new JsonResponse( $this @@ -66,7 +66,7 @@ final readonly class Responder implements ResponderInterface string $route, array $parameters = [], int $status = 302, - array $headers = [] + array $headers = [], ): RedirectResponse { return $this->redirect($this->urlGenerator->generate($route, $parameters), $status, $headers); } diff --git a/src/Bundle/ChillWopiBundle/src/Service/Controller/ResponderInterface.php b/src/Bundle/ChillWopiBundle/src/Service/Controller/ResponderInterface.php index a2d7b5518..237063fe3 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Controller/ResponderInterface.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Controller/ResponderInterface.php @@ -28,7 +28,7 @@ interface ResponderInterface public function file( $file, ?string $filename = null, - string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT + string $disposition = ResponseHeaderBag::DISPOSITION_ATTACHMENT, ): BinaryFileResponse; /** @@ -41,7 +41,7 @@ interface ResponderInterface mixed $data, int $status = 200, array $headers = [], - array $context = [] + array $context = [], ): JsonResponse; /** @@ -61,7 +61,7 @@ interface ResponderInterface string $route, array $parameters = [], int $status = 302, - array $headers = [] + array $headers = [], ): RedirectResponse; /** diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php index e6889778c..92140d996 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php @@ -27,7 +27,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface public function __construct( private readonly ChillRedis $redis, - private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME + private readonly int $ttlAfterDeleteSeconds = self::LOCK_GRACEFUL_DURATION_TIME, ) {} public function deleteLock(Document $document, RequestInterface $request): bool diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php index 2b569014d..d29c2d805 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentManager.php @@ -38,7 +38,7 @@ final readonly class ChillDocumentManager implements DocumentManagerInterface private Psr17Interface $psr17, RequestStack $requestStack, private StoredObjectManagerInterface $storedObjectManager, - private StoredObjectRepository $storedObjectRepository + private StoredObjectRepository $storedObjectRepository, ) { $this->request = $httpMessageFactory->createRequest($requestStack->getCurrentRequest()); } diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php index 9f2dac4f0..7f68ac0ea 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillWopi.php @@ -22,7 +22,7 @@ final readonly class ChillWopi implements WopiInterface public function checkFileInfo( string $fileId, ?string $accessToken, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->checkFileInfo($fileId, $accessToken, $request, [ 'SupportsRename' => false, @@ -37,7 +37,7 @@ final readonly class ChillWopi implements WopiInterface public function enumerateAncestors( string $fileId, ?string $accessToken, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->enumerateAncestors($fileId, $accessToken, $request); } @@ -55,7 +55,7 @@ final readonly class ChillWopi implements WopiInterface public function getShareUrl( string $fileId, ?string $accessToken, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->getShareUrl($fileId, $accessToken, $request); } @@ -64,7 +64,7 @@ final readonly class ChillWopi implements WopiInterface string $fileId, ?string $accessToken, string $xWopiLock, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->lock($fileId, $accessToken, $xWopiLock, $request); } @@ -74,7 +74,7 @@ final readonly class ChillWopi implements WopiInterface ?string $accessToken, string $xWopiLock, string $xWopiEditors, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->putFile($fileId, $accessToken, $xWopiLock, $xWopiEditors, $request); } @@ -93,7 +93,7 @@ final readonly class ChillWopi implements WopiInterface string $fileId, ?string $accessToken, string $xWopiLock, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->refreshLock($fileId, $accessToken, $xWopiLock, $request); } @@ -103,7 +103,7 @@ final readonly class ChillWopi implements WopiInterface ?string $accessToken, string $xWopiLock, string $xWopiRequestedName, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->renameFile($fileId, $accessToken, $xWopiLock, $xWopiRequestedName, $request); } @@ -112,7 +112,7 @@ final readonly class ChillWopi implements WopiInterface string $fileId, ?string $accessToken, string $xWopiLock, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->unlock($fileId, $accessToken, $xWopiLock, $request); } @@ -122,7 +122,7 @@ final readonly class ChillWopi implements WopiInterface ?string $accessToken, string $xWopiLock, string $xWopiOldLock, - RequestInterface $request + RequestInterface $request, ): ResponseInterface { return $this->wopi->unlockAndRelock($fileId, $accessToken, $xWopiLock, $xWopiOldLock, $request); }