mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 09:18:24 +00:00 
			
		
		
		
	update cs after php-cs-fixer upgrade
This commit is contained in:
		| @@ -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, | ||||
|     ) {} | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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']; | ||||
|     } | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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'); | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   | ||||
| @@ -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]) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
| @@ -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)); | ||||
|   | ||||
| @@ -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 !'); | ||||
|   | ||||
| @@ -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'); | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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) {} | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -44,7 +44,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface | ||||
|         CountNotificationTask $counter, | ||||
|         TokenStorageInterface $tokenStorage, | ||||
|         TranslatorInterface $translator, | ||||
|         AuthorizationCheckerInterface $authorizationChecker | ||||
|         AuthorizationCheckerInterface $authorizationChecker, | ||||
|     ) { | ||||
|         $this->counter = $counter; | ||||
|         $this->tokenStorage = $tokenStorage; | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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'); | ||||
|     } | ||||
|   | ||||
| @@ -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, | ||||
|     ) {} | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
| @@ -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'), | ||||
|         }; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
|   | ||||
| @@ -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(); | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -33,6 +33,6 @@ class RemoteEvent | ||||
|         #[Serializer\Groups(['read'])] | ||||
|         public \DateTimeImmutable $endDate, | ||||
|         #[Serializer\Groups(['read'])] | ||||
|         public bool $isAllDay = false | ||||
|         public bool $isAllDay = false, | ||||
|     ) {} | ||||
| } | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -37,7 +37,7 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen | ||||
|  | ||||
|     public function __construct( | ||||
|         private Security $security, | ||||
|         private EntityManagerInterface $em | ||||
|         private EntityManagerInterface $em, | ||||
|     ) {} | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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')) | ||||
|   | ||||
| @@ -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']); | ||||
|   | ||||
| @@ -44,7 +44,7 @@ class CreateFieldsOnGroupCommand extends Command | ||||
|         private readonly EntityManager $entityManager, | ||||
|         private readonly ValidatorInterface $validator, | ||||
|         private $availableLanguages, | ||||
|         private $customizablesEntities | ||||
|         private $customizablesEntities, | ||||
|     ) { | ||||
|         parent::__construct(); | ||||
|     } | ||||
|   | ||||
| @@ -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, | ||||
|     ) {} | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -28,7 +28,7 @@ class CustomFieldText extends AbstractCustomField | ||||
|  | ||||
|     public function __construct( | ||||
|         private readonly Environment $templating, | ||||
|         private readonly TranslatableStringHelper $translatableStringHelper | ||||
|         private readonly TranslatableStringHelper $translatableStringHelper, | ||||
|     ) {} | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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); | ||||
|   | ||||
| @@ -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']; | ||||
|     } | ||||
|   | ||||
| @@ -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(); | ||||
|     } | ||||
|   | ||||
| @@ -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( | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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, | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
| @@ -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() | ||||
|   | ||||
| @@ -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')] | ||||
|   | ||||
| @@ -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')] | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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(); | ||||
|     } | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -20,7 +20,7 @@ interface GenericDocForAccompanyingPeriodProviderInterface | ||||
|         ?\DateTimeImmutable $startDate = null, | ||||
|         ?\DateTimeImmutable $endDate = null, | ||||
|         ?string $content = null, | ||||
|         ?string $origin = null | ||||
|         ?string $origin = null, | ||||
|     ): FetchQueryInterface; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -20,7 +20,7 @@ interface GenericDocForPersonProviderInterface | ||||
|         ?\DateTimeImmutable $startDate = null, | ||||
|         ?\DateTimeImmutable $endDate = null, | ||||
|         ?string $content = null, | ||||
|         ?string $origin = null | ||||
|         ?string $origin = null, | ||||
|     ): FetchQueryInterface; | ||||
|  | ||||
|     /** | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
|   | ||||
| @@ -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, | ||||
|   | ||||
| @@ -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; | ||||
| } | ||||
|   | ||||
| @@ -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()); | ||||
|     } | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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, | ||||
|         }; | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -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']); | ||||
|   | ||||
| @@ -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 = []) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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)) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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); | ||||
|     } | ||||
|   | ||||
| @@ -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'])] | ||||
|   | ||||
| @@ -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(); | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -41,7 +41,7 @@ class EventChoiceLoader implements ChoiceLoaderInterface | ||||
|      */ | ||||
|     public function __construct( | ||||
|         EntityRepository $eventRepository, | ||||
|         ?array $centers = null | ||||
|         ?array $centers = null, | ||||
|     ) { | ||||
|         $this->eventRepository = $eventRepository; | ||||
|  | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|   | ||||
| @@ -31,7 +31,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface | ||||
|  | ||||
|     public function __construct( | ||||
|         AuthorizationCheckerInterface $authorizationChecker, | ||||
|         TranslatorInterface $translator | ||||
|         TranslatorInterface $translator, | ||||
|     ) { | ||||
|         $this->authorizationChecker = $authorizationChecker; | ||||
|         $this->translator = $translator; | ||||
|   | ||||
Some files were not shown because too many files have changed in this diff Show More
		Reference in New Issue
	
	Block a user