Upgrade of php-cs-fixer

This commit is contained in:
Julien Fastré 2024-09-11 14:21:32 +02:00
parent 8b1b255050
commit d0ee381627
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
273 changed files with 357 additions and 357 deletions

View File

@ -28,7 +28,7 @@ class ActivityReasonAggregator implements AggregatorInterface, ExportElementVali
public function __construct( public function __construct(
protected ActivityReasonCategoryRepository $activityReasonCategoryRepository, protected ActivityReasonCategoryRepository $activityReasonCategoryRepository,
protected ActivityReasonRepository $activityReasonRepository, protected ActivityReasonRepository $activityReasonRepository,
protected TranslatableStringHelper $translatableStringHelper protected TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class ActivityUsersJobAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly UserJobRepositoryInterface $userJobRepository, private readonly UserJobRepositoryInterface $userJobRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class ActivityUsersScopeAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly ScopeRepositoryInterface $scopeRepository, private readonly ScopeRepositoryInterface $scopeRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class CreatorJobAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly UserJobRepositoryInterface $userJobRepository, private readonly UserJobRepositoryInterface $userJobRepository,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class CreatorScopeAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly ScopeRepository $scopeRepository, private readonly ScopeRepository $scopeRepository,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -42,7 +42,7 @@ class StatActivityDuration implements ExportInterface, GroupedExportInterface
/** /**
* The action for this report. * The action for this report.
*/ */
protected string $action = 'sum' protected string $action = 'sum',
) { ) {
$this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center']; $this->filterStatsByCenters = $parameterBag->get('chill_main')['acl']['filter_stats_by_center'];
} }

View File

@ -39,7 +39,7 @@ class ListActivityHelper
private readonly TranslatorInterface $translator, private readonly TranslatorInterface $translator,
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly TranslatableStringExportLabelHelper $translatableStringLabelHelper, private readonly TranslatableStringExportLabelHelper $translatableStringLabelHelper,
private readonly UserHelper $userHelper private readonly UserHelper $userHelper,
) { ) {
} }

View File

@ -25,7 +25,7 @@ final readonly class ActivityPresenceFilter implements FilterInterface
{ {
public function __construct( public function __construct(
private TranslatableStringHelperInterface $translatableStringHelper, private TranslatableStringHelperInterface $translatableStringHelper,
private TranslatorInterface $translator private TranslatorInterface $translator,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class ActivityTypeFilter implements ExportElementValidatedInterface, FilterInter
{ {
public function __construct( public function __construct(
protected TranslatableStringHelperInterface $translatableStringHelper, protected TranslatableStringHelperInterface $translatableStringHelper,
protected ActivityTypeRepositoryInterface $activityTypeRepository protected ActivityTypeRepositoryInterface $activityTypeRepository,
) { ) {
} }

View File

@ -29,7 +29,7 @@ class UsersJobFilter implements FilterInterface
public function __construct( public function __construct(
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly UserJobRepositoryInterface $userJobRepository private readonly UserJobRepositoryInterface $userJobRepository,
) { ) {
} }

View File

@ -29,7 +29,7 @@ class UsersScopeFilter implements FilterInterface
public function __construct( public function __construct(
private readonly ScopeRepositoryInterface $scopeRepository, private readonly ScopeRepositoryInterface $scopeRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -59,7 +59,7 @@ class ActivityType extends AbstractType
protected TranslatableStringHelper $translatableStringHelper, protected TranslatableStringHelper $translatableStringHelper,
protected array $timeChoices, protected array $timeChoices,
protected SocialIssueRender $socialIssueRender, protected SocialIssueRender $socialIssueRender,
protected SocialActionRender $socialActionRender protected SocialActionRender $socialActionRender,
) { ) {
if (!$tokenStorage->getToken()->getUser() instanceof User) { if (!$tokenStorage->getToken()->getUser() instanceof User) {
throw new \RuntimeException('you should have a valid user'); throw new \RuntimeException('you should have a valid user');

View File

@ -27,7 +27,7 @@ class PickActivityReasonType extends AbstractType
public function __construct( public function __construct(
private readonly ActivityReasonRepository $activityReasonRepository, private readonly ActivityReasonRepository $activityReasonRepository,
private readonly ActivityReasonRender $reasonRender, private readonly ActivityReasonRender $reasonRender,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -32,7 +32,7 @@ final readonly class ActivityDocumentACLAwareRepository implements ActivityDocum
private EntityManagerInterface $em, private EntityManagerInterface $em,
private CenterResolverManagerInterface $centerResolverManager, private CenterResolverManagerInterface $centerResolverManager,
private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser, private AuthorizationHelperForCurrentUserInterface $authorizationHelperForCurrentUser,
private Security $security private Security $security,
) { ) {
} }

View File

@ -25,7 +25,7 @@ class ActivityReasonRepository extends ServiceEntityRepository
{ {
public function __construct( public function __construct(
ManagerRegistry $registry, ManagerRegistry $registry,
private readonly RequestStack $requestStack private readonly RequestStack $requestStack,
) { ) {
parent::__construct($registry, ActivityReason::class); parent::__construct($registry, ActivityReason::class);
} }

View File

@ -75,7 +75,7 @@ class ActivityVoter extends AbstractChillVoter implements ProvideRoleHierarchyIn
public function __construct( public function __construct(
protected Security $security, protected Security $security,
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory->generate(self::class) $this->voterHelper = $voterHelperFactory->generate(self::class)
->addCheckFor(Person::class, [self::SEE, self::CREATE]) ->addCheckFor(Person::class, [self::SEE, self::CREATE])

View File

@ -50,7 +50,7 @@ class ActivityContext implements
private readonly TranslatorInterface $translator, private readonly TranslatorInterface $translator,
private readonly BaseContextData $baseContextData, private readonly BaseContextData $baseContextData,
private readonly ThirdPartyRender $thirdPartyRender, private readonly ThirdPartyRender $thirdPartyRender,
private readonly ThirdPartyRepository $thirdPartyRepository private readonly ThirdPartyRepository $thirdPartyRepository,
) { ) {
} }

View File

@ -56,7 +56,7 @@ class ListActivitiesByAccompanyingPeriodContext implements
private readonly SocialIssueRepository $socialIssueRepository, private readonly SocialIssueRepository $socialIssueRepository,
private readonly ThirdPartyRepository $thirdPartyRepository, private readonly ThirdPartyRepository $thirdPartyRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly UserRepository $userRepository private readonly UserRepository $userRepository,
) { ) {
} }

View File

@ -76,7 +76,7 @@ final class TranslatableActivityReasonTest extends TypeTestCase
*/ */
protected function getTranslatableStringHelper( protected function getTranslatableStringHelper(
$locale = 'en', $locale = 'en',
$fallbackLocale = 'en' $fallbackLocale = 'en',
) { ) {
$prophet = new \Prophecy\Prophet(); $prophet = new \Prophecy\Prophet();
$requestStack = $prophet->prophesize(); $requestStack = $prophet->prophesize();

View File

@ -138,7 +138,7 @@ final class ActivityVoterTest extends KernelTestCase
Scope $scope, Scope $scope,
Center $center, Center $center,
$attribute, $attribute,
$message $message,
) { ) {
$token = $this->prepareToken($user); $token = $this->prepareToken($user);
$activity = $this->prepareActivity($scope, $this->preparePerson($center)); $activity = $this->prepareActivity($scope, $this->preparePerson($center));

View File

@ -32,7 +32,7 @@ class TimelineActivityProvider implements TimelineProviderInterface
protected EntityManagerInterface $em, protected EntityManagerInterface $em,
protected AuthorizationHelperInterface $helper, protected AuthorizationHelperInterface $helper,
TokenStorageInterface $storage, TokenStorageInterface $storage,
protected ActivityACLAwareRepository $aclAwareRepository protected ActivityACLAwareRepository $aclAwareRepository,
) { ) {
if (!$storage->getToken()->getUser() instanceof User) { if (!$storage->getToken()->getUser() instanceof User) {
throw new \RuntimeException('A user should be authenticated !'); throw new \RuntimeException('A user should be authenticated !');

View File

@ -66,7 +66,7 @@ final class AsideActivityController extends CRUDController
string $action, string $action,
$query, $query,
Request $request, Request $request,
PaginatorInterface $paginator PaginatorInterface $paginator,
) { ) {
if ('index' === $action) { if ('index' === $action) {
return $query->orderBy('e.date', 'DESC'); return $query->orderBy('e.date', 'DESC');

View File

@ -22,7 +22,7 @@ class ByActivityTypeAggregator implements AggregatorInterface
{ {
public function __construct( public function __construct(
private readonly AsideActivityCategoryRepository $asideActivityCategoryRepository, private readonly AsideActivityCategoryRepository $asideActivityCategoryRepository,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class ByUserJobAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly UserJobRepositoryInterface $userJobRepository, private readonly UserJobRepositoryInterface $userJobRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class ByUserScopeAggregator implements AggregatorInterface
public function __construct( public function __construct(
private readonly ScopeRepositoryInterface $scopeRepository, private readonly ScopeRepositoryInterface $scopeRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -41,7 +41,7 @@ final readonly class ListAsideActivity implements ListInterface, GroupedExportIn
private AsideActivityCategoryRepository $asideActivityCategoryRepository, private AsideActivityCategoryRepository $asideActivityCategoryRepository,
private CategoryRender $categoryRender, private CategoryRender $categoryRender,
private LocationRepository $locationRepository, private LocationRepository $locationRepository,
private TranslatableStringHelperInterface $translatableStringHelper private TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -27,7 +27,7 @@ class ByActivityTypeFilter implements FilterInterface
public function __construct( public function __construct(
private readonly CategoryRender $categoryRender, private readonly CategoryRender $categoryRender,
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly AsideActivityCategoryRepository $asideActivityTypeRepository private readonly AsideActivityCategoryRepository $asideActivityTypeRepository,
) { ) {
} }

View File

@ -24,7 +24,7 @@ use Symfony\Component\Security\Core\Security;
final readonly class ByLocationFilter implements FilterInterface final readonly class ByLocationFilter implements FilterInterface
{ {
public function __construct( public function __construct(
private Security $security private Security $security,
) { ) {
} }

View File

@ -29,7 +29,7 @@ class ByUserJobFilter implements FilterInterface
public function __construct( public function __construct(
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly UserJobRepositoryInterface $userJobRepository private readonly UserJobRepositoryInterface $userJobRepository,
) { ) {
} }

View File

@ -29,7 +29,7 @@ class ByUserScopeFilter implements FilterInterface
public function __construct( public function __construct(
private readonly ScopeRepositoryInterface $scopeRepository, private readonly ScopeRepositoryInterface $scopeRepository,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -44,7 +44,7 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
CountNotificationTask $counter, CountNotificationTask $counter,
TokenStorageInterface $tokenStorage, TokenStorageInterface $tokenStorage,
TranslatorInterface $translator, TranslatorInterface $translator,
AuthorizationCheckerInterface $authorizationChecker AuthorizationCheckerInterface $authorizationChecker,
) { ) {
$this->counter = $counter; $this->counter = $counter;
$this->tokenStorage = $tokenStorage; $this->tokenStorage = $tokenStorage;

View File

@ -26,7 +26,7 @@ class AsideActivityVoter extends AbstractChillVoter implements ProvideRoleHierar
private readonly VoterHelperInterface $voterHelper; private readonly VoterHelperInterface $voterHelper;
public function __construct( public function __construct(
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)

View File

@ -45,7 +45,7 @@ class SendTestShortMessageOnCalendarCommand extends Command
private readonly PhoneNumberHelperInterface $phoneNumberHelper, private readonly PhoneNumberHelperInterface $phoneNumberHelper,
private readonly ShortMessageForCalendarBuilderInterface $messageForCalendarBuilder, private readonly ShortMessageForCalendarBuilderInterface $messageForCalendarBuilder,
private readonly ShortMessageTransporterInterface $transporter, private readonly ShortMessageTransporterInterface $transporter,
private readonly UserRepositoryInterface $userRepository private readonly UserRepositoryInterface $userRepository,
) { ) {
parent::__construct(); parent::__construct();
} }

View File

@ -58,7 +58,7 @@ class CalendarController extends AbstractController
private readonly PersonRepository $personRepository, private readonly PersonRepository $personRepository,
private readonly AccompanyingPeriodRepository $accompanyingPeriodRepository, private readonly AccompanyingPeriodRepository $accompanyingPeriodRepository,
private readonly UserRepositoryInterface $userRepository, private readonly UserRepositoryInterface $userRepository,
private readonly TranslatorInterface $translator private readonly TranslatorInterface $translator,
) { ) {
} }

View File

@ -26,7 +26,7 @@ final readonly class JobAggregator implements AggregatorInterface
public function __construct( public function __construct(
private UserJobRepository $jobRepository, private UserJobRepository $jobRepository,
private TranslatableStringHelper $translatableStringHelper private TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ final readonly class ScopeAggregator implements AggregatorInterface
public function __construct( public function __construct(
private ScopeRepository $scopeRepository, private ScopeRepository $scopeRepository,
private TranslatableStringHelper $translatableStringHelper private TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -28,7 +28,7 @@ final readonly class JobFilter implements FilterInterface
public function __construct( public function __construct(
private TranslatableStringHelper $translatableStringHelper, private TranslatableStringHelper $translatableStringHelper,
private UserJobRepositoryInterface $userJobRepository private UserJobRepositoryInterface $userJobRepository,
) { ) {
} }

View File

@ -30,7 +30,7 @@ class ScopeFilter implements FilterInterface
public function __construct( public function __construct(
protected TranslatorInterface $translator, protected TranslatorInterface $translator,
private readonly TranslatableStringHelper $translatableStringHelper, private readonly TranslatableStringHelper $translatableStringHelper,
private readonly ScopeRepositoryInterface $scopeRepository private readonly ScopeRepositoryInterface $scopeRepository,
) { ) {
} }

View File

@ -37,7 +37,7 @@ class CalendarType extends AbstractType
private readonly IdToUsersDataTransformer $idToUsersDataTransformer, private readonly IdToUsersDataTransformer $idToUsersDataTransformer,
private readonly IdToLocationDataTransformer $idToLocationDataTransformer, private readonly IdToLocationDataTransformer $idToLocationDataTransformer,
private readonly ThirdPartiesToIdDataTransformer $partiesToIdDataTransformer, private readonly ThirdPartiesToIdDataTransformer $partiesToIdDataTransformer,
private readonly IdToCalendarRangeDataTransformer $calendarRangeDataTransformer private readonly IdToCalendarRangeDataTransformer $calendarRangeDataTransformer,
) { ) {
} }

View File

@ -46,7 +46,7 @@ class CalendarMessage
public function __construct( public function __construct(
Calendar $calendar, Calendar $calendar,
private readonly string $action, private readonly string $action,
User $byUser User $byUser,
) { ) {
$this->calendarId = $calendar->getId(); $this->calendarId = $calendar->getId();
$this->byUserId = $byUser->getId(); $this->byUserId = $byUser->getId();

View File

@ -60,7 +60,7 @@ final readonly class MSUserAbsenceReader implements MSUserAbsenceReaderInterface
'alwaysEnabled' => true, 'alwaysEnabled' => true,
'scheduled' => RemoteEventConverter::convertStringDateWithoutTimezone($automaticRepliesSettings['scheduledStartDateTime']['dateTime']) < $this->clock->now() 'scheduled' => RemoteEventConverter::convertStringDateWithoutTimezone($automaticRepliesSettings['scheduledStartDateTime']['dateTime']) < $this->clock->now()
&& RemoteEventConverter::convertStringDateWithoutTimezone($automaticRepliesSettings['scheduledEndDateTime']['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'),
}; };
} }
} }

View File

@ -179,7 +179,7 @@ class MapCalendarToUser
User $user, User $user,
int $expiration, int $expiration,
?string $id = null, ?string $id = null,
?string $secret = null ?string $secret = null,
): void { ): void {
$user->setAttributeByDomain(self::METADATA_KEY, self::EXPIRATION_SUBSCRIPTION_EVENT, $expiration); $user->setAttributeByDomain(self::METADATA_KEY, self::EXPIRATION_SUBSCRIPTION_EVENT, $expiration);

View File

@ -57,7 +57,7 @@ class RemoteEventConverter
private readonly LocationConverter $locationConverter, private readonly LocationConverter $locationConverter,
private readonly LoggerInterface $logger, private readonly LoggerInterface $logger,
private readonly PersonRenderInterface $personRender, private readonly PersonRenderInterface $personRender,
private readonly TranslatorInterface $translator private readonly TranslatorInterface $translator,
) { ) {
$this->defaultDateTimeZone = (new \DateTimeImmutable())->getTimezone(); $this->defaultDateTimeZone = (new \DateTimeImmutable())->getTimezone();
$this->remoteDateTimeZone = self::getRemoteTimeZone(); $this->remoteDateTimeZone = self::getRemoteTimeZone();

View File

@ -353,7 +353,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
[ [
'id' => $id, 'id' => $id,
'lastModifiedDateTime' => $lastModified, 'lastModifiedDateTime' => $lastModified,
'changeKey' => $changeKey 'changeKey' => $changeKey,
] = $this->createOnRemote($eventData, $calendar->getMainUser(), 'calendar_'.$calendar->getId()); ] = $this->createOnRemote($eventData, $calendar->getMainUser(), 'calendar_'.$calendar->getId());
if (null === $id) { if (null === $id) {
@ -429,7 +429,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
[ [
'id' => $id, 'id' => $id,
'lastModifiedDateTime' => $lastModified, 'lastModifiedDateTime' => $lastModified,
'changeKey' => $changeKey 'changeKey' => $changeKey,
] = $this->createOnRemote( ] = $this->createOnRemote(
$eventData, $eventData,
$calendarRange->getUser(), $calendarRange->getUser(),
@ -566,7 +566,7 @@ class MSGraphRemoteCalendarConnector implements RemoteCalendarConnectorInterface
[ [
'id' => $id, 'id' => $id,
'lastModifiedDateTime' => $lastModified, 'lastModifiedDateTime' => $lastModified,
'changeKey' => $changeKey 'changeKey' => $changeKey,
] = $this->patchOnRemote( ] = $this->patchOnRemote(
$calendar->getRemoteId(), $calendar->getRemoteId(),
$eventData, $eventData,

View File

@ -43,7 +43,7 @@ class RemoteEvent
/** /**
* @Serializer\Groups({"read"}) * @Serializer\Groups({"read"})
*/ */
public bool $isAllDay = false public bool $isAllDay = false,
) { ) {
} }
} }

View File

@ -65,7 +65,7 @@ class CalendarRangeRepository implements ObjectRepository
\DateTimeImmutable $from, \DateTimeImmutable $from,
\DateTimeImmutable $to, \DateTimeImmutable $to,
?int $limit = null, ?int $limit = null,
?int $offset = null ?int $offset = null,
): array { ): array {
$qb = $this->buildQueryAvailableRangesForUser($user, $from, $to); $qb = $this->buildQueryAvailableRangesForUser($user, $from, $to);

View File

@ -40,7 +40,7 @@ final readonly class CalendarContext implements CalendarContextInterface
private PersonRepository $personRepository, private PersonRepository $personRepository,
private ThirdPartyRender $thirdPartyRender, private ThirdPartyRender $thirdPartyRender,
private ThirdPartyRepository $thirdPartyRepository, private ThirdPartyRepository $thirdPartyRepository,
private TranslatableStringHelperInterface $translatableStringHelper private TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -37,7 +37,7 @@ final readonly class AccompanyingPeriodCalendarGenericDocProvider implements Gen
public function __construct( public function __construct(
private Security $security, private Security $security,
private EntityManagerInterface $em private EntityManagerInterface $em,
) { ) {
} }

View File

@ -36,7 +36,7 @@ final readonly class PersonCalendarGenericDocProvider implements GenericDocForPe
public function __construct( public function __construct(
private Security $security, private Security $security,
private EntityManagerInterface $em private EntityManagerInterface $em,
) { ) {
} }

View File

@ -156,7 +156,7 @@ final class CalendarTypeTest extends TypeTestCase
private function buildMultiToIdDataTransformer( private function buildMultiToIdDataTransformer(
string $classTransformer, string $classTransformer,
string $objClass string $objClass,
) { ) {
$transformer = $this->prophesize($classTransformer); $transformer = $this->prophesize($classTransformer);
$transformer->transform(Argument::type('array')) $transformer->transform(Argument::type('array'))
@ -195,7 +195,7 @@ final class CalendarTypeTest extends TypeTestCase
private function buildSingleToIdDataTransformer( private function buildSingleToIdDataTransformer(
string $classTransformer, string $classTransformer,
string $class string $class,
) { ) {
$transformer = $this->prophesize($classTransformer); $transformer = $this->prophesize($classTransformer);
$transformer->transform(Argument::type('object')) $transformer->transform(Argument::type('object'))

View File

@ -203,7 +203,7 @@ final class CalendarContextTest extends TestCase
private function buildCalendarContext( private function buildCalendarContext(
?EntityManagerInterface $entityManager = null, ?EntityManagerInterface $entityManager = null,
?NormalizerInterface $normalizer = null ?NormalizerInterface $normalizer = null,
): CalendarContext { ): CalendarContext {
$baseContext = $this->prophesize(BaseContextData::class); $baseContext = $this->prophesize(BaseContextData::class);
$baseContext->getData(null)->willReturn(['base_context' => 'data']); $baseContext->getData(null)->willReturn(['base_context' => 'data']);

View File

@ -43,7 +43,7 @@ class CreateFieldsOnGroupCommand extends Command
private readonly EntityManager $entityManager, private readonly EntityManager $entityManager,
private readonly ValidatorInterface $validator, private readonly ValidatorInterface $validator,
private $availableLanguages, private $availableLanguages,
private $customizablesEntities private $customizablesEntities,
) { ) {
parent::__construct(); parent::__construct();
} }

View File

@ -42,7 +42,7 @@ class CustomFieldChoice extends AbstractCustomField
/** /**
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation * @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/ */
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -44,7 +44,7 @@ class CustomFieldDate extends AbstractCustomField
public function __construct( public function __construct(
private readonly Environment $templating, private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -41,7 +41,7 @@ class CustomFieldNumber extends AbstractCustomField
public function __construct( public function __construct(
private readonly Environment $templating, private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -28,7 +28,7 @@ class CustomFieldText extends AbstractCustomField
public function __construct( public function __construct(
private readonly Environment $templating, private readonly Environment $templating,
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -31,7 +31,7 @@ class CustomFieldTitle extends AbstractCustomField
/** /**
* @var TranslatableStringHelper Helper that find the string in current locale from an array of translation * @var TranslatableStringHelper Helper that find the string in current locale from an array of translation
*/ */
private readonly TranslatableStringHelper $translatableStringHelper private readonly TranslatableStringHelper $translatableStringHelper,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class CustomFieldsGroupType extends AbstractType
public function __construct( public function __construct(
private readonly array $customizableEntities, private readonly array $customizableEntities,
// TODO : add comment about this variable // TODO : add comment about this variable
private readonly TranslatorInterface $translator private readonly TranslatorInterface $translator,
) { ) {
} }

View File

@ -64,7 +64,7 @@ final class DocGeneratorTemplateController extends AbstractController
DocGeneratorTemplate $template, DocGeneratorTemplate $template,
string $entityClassName, string $entityClassName,
int $entityId, int $entityId,
Request $request Request $request,
): Response { ): Response {
return $this->generateDocFromTemplate( return $this->generateDocFromTemplate(
$template, $template,
@ -84,7 +84,7 @@ final class DocGeneratorTemplateController extends AbstractController
DocGeneratorTemplate $template, DocGeneratorTemplate $template,
string $entityClassName, string $entityClassName,
int $entityId, int $entityId,
Request $request Request $request,
): Response { ): Response {
return $this->generateDocFromTemplate( return $this->generateDocFromTemplate(
$template, $template,
@ -159,7 +159,7 @@ final class DocGeneratorTemplateController extends AbstractController
DocGeneratorTemplate $template, DocGeneratorTemplate $template,
int $entityId, int $entityId,
Request $request, Request $request,
bool $isTest bool $isTest,
): Response { ): Response {
try { try {
$context = $this->contextManager->getContextByDocGeneratorTemplate($template); $context = $this->contextManager->getContextByDocGeneratorTemplate($template);

View File

@ -28,7 +28,7 @@ final class RelatorioDriver implements DriverInterface
public function __construct( public function __construct(
private readonly HttpClientInterface $client, private readonly HttpClientInterface $client,
ParameterBagInterface $parameterBag, ParameterBagInterface $parameterBag,
private readonly LoggerInterface $logger private readonly LoggerInterface $logger,
) { ) {
$this->url = $parameterBag->get('chill_doc_generator')['driver']['relatorio']['url']; $this->url = $parameterBag->get('chill_doc_generator')['driver']['relatorio']['url'];
} }

View File

@ -35,7 +35,7 @@ class DocGenObjectNormalizer implements NormalizerAwareInterface, NormalizerInte
public function __construct( public function __construct(
private readonly ClassMetadataFactoryInterface $classMetadataFactory, private readonly ClassMetadataFactoryInterface $classMetadataFactory,
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
$this->propertyAccess = PropertyAccess::createPropertyAccessor(); $this->propertyAccess = PropertyAccess::createPropertyAccessor();
} }

View File

@ -33,7 +33,7 @@ class Generator implements GeneratorInterface
private readonly DriverInterface $driver, private readonly DriverInterface $driver,
private readonly ManagerRegistry $objectManagerRegistry, private readonly ManagerRegistry $objectManagerRegistry,
private readonly LoggerInterface $logger, private readonly LoggerInterface $logger,
private readonly StoredObjectManagerInterface $storedObjectManager private readonly StoredObjectManagerInterface $storedObjectManager,
) { ) {
} }

View File

@ -39,7 +39,7 @@ final readonly class OnGenerationFails implements EventSubscriberInterface
private MailerInterface $mailer, private MailerInterface $mailer,
private StoredObjectRepositoryInterface $storedObjectRepository, private StoredObjectRepositoryInterface $storedObjectRepository,
private TranslatorInterface $translator, private TranslatorInterface $translator,
private UserRepositoryInterface $userRepository private UserRepositoryInterface $userRepository,
) { ) {
} }

View File

@ -56,7 +56,7 @@ final class BaseContextDataTest extends KernelTestCase
} }
private function buildBaseContext( private function buildBaseContext(
?NormalizerInterface $normalizer = null ?NormalizerInterface $normalizer = null,
): BaseContextData { ): BaseContextData {
return new BaseContextData( return new BaseContextData(
$normalizer ?? self::$container->get(NormalizerInterface::class) $normalizer ?? self::$container->get(NormalizerInterface::class)

View File

@ -36,7 +36,7 @@ class DocumentAccompanyingCourseController extends AbstractController
public function __construct( public function __construct(
protected TranslatorInterface $translator, protected TranslatorInterface $translator,
protected EventDispatcherInterface $eventDispatcher, protected EventDispatcherInterface $eventDispatcher,
protected AuthorizationHelper $authorizationHelper protected AuthorizationHelper $authorizationHelper,
) { ) {
} }

View File

@ -42,7 +42,7 @@ class DocumentPersonController extends AbstractController
public function __construct( public function __construct(
protected TranslatorInterface $translator, protected TranslatorInterface $translator,
protected EventDispatcherInterface $eventDispatcher, protected EventDispatcherInterface $eventDispatcher,
protected AuthorizationHelper $authorizationHelper protected AuthorizationHelper $authorizationHelper,
) { ) {
} }

View File

@ -52,7 +52,7 @@ class DocumentCategory
* *
* @var int The id which is unique inside the bundle * @var int The id which is unique inside the bundle
*/ */
private $idInsideBundle private $idInsideBundle,
) { ) {
} }

View File

@ -138,7 +138,7 @@ class StoredObject implements AsyncFileInterface, Document, TrackCreationInterfa
public function __construct(/** public function __construct(/**
* @ORM\Column(type="text", options={"default": "ready"}) * @ORM\Column(type="text", options={"default": "ready"})
*/ */
private string $status = 'ready' private string $status = 'ready',
) { ) {
$this->uuid = Uuid::uuid4(); $this->uuid = Uuid::uuid4();
} }

View File

@ -27,7 +27,7 @@ use Symfony\Component\OptionsResolver\OptionsResolver;
final class AccompanyingCourseDocumentType extends AbstractType final class AccompanyingCourseDocumentType extends AbstractType
{ {
public function __construct( public function __construct(
private readonly TranslatableStringHelperInterface $translatableStringHelper private readonly TranslatableStringHelperInterface $translatableStringHelper,
) { ) {
} }

View File

@ -20,7 +20,7 @@ use Symfony\Component\Serializer\SerializerInterface;
class StoredObjectDataTransformer implements DataTransformerInterface class StoredObjectDataTransformer implements DataTransformerInterface
{ {
public function __construct( public function __construct(
private readonly SerializerInterface $serializer private readonly SerializerInterface $serializer,
) { ) {
} }

View File

@ -20,7 +20,7 @@ interface GenericDocForAccompanyingPeriodProviderInterface
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
?string $origin = null ?string $origin = null,
): FetchQueryInterface; ): FetchQueryInterface;
/** /**

View File

@ -20,7 +20,7 @@ interface GenericDocForPersonProviderInterface
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
?string $origin = null ?string $origin = null,
): FetchQueryInterface; ): FetchQueryInterface;
/** /**

View File

@ -46,7 +46,7 @@ final readonly class Manager
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
array $places = [] array $places = [],
): int { ): int {
['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($accompanyingPeriod, $startDate, $endDate, $content, $places); ['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 $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
array $places = [] array $places = [],
): int { ): int {
['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($person, $startDate, $endDate, $content, $places); ['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 $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
array $places = [] array $places = [],
): iterable { ): iterable {
['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($accompanyingPeriod, $startDate, $endDate, $content, $places); ['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 $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
array $places = [] array $places = [],
): iterable { ): iterable {
['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($person, $startDate, $endDate, $content, $places); ['sql' => $sql, 'params' => $params, 'types' => $types] = $this->buildUnionQuery($person, $startDate, $endDate, $content, $places);

View File

@ -35,7 +35,7 @@ final readonly class PersonDocumentGenericDocProvider implements GenericDocForPe
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null, ?string $content = null,
?string $origin = null ?string $origin = null,
): FetchQueryInterface { ): FetchQueryInterface {
return $this->personDocumentACLAwareRepository->buildFetchQueryForPerson( return $this->personDocumentACLAwareRepository->buildFetchQueryForPerson(
$person, $person,

View File

@ -31,13 +31,13 @@ interface PersonDocumentACLAwareRepositoryInterface
Person $person, Person $person,
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null ?string $content = null,
): FetchQueryInterface; ): FetchQueryInterface;
public function buildFetchQueryForAccompanyingPeriod( public function buildFetchQueryForAccompanyingPeriod(
AccompanyingPeriod $period, AccompanyingPeriod $period,
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null ?string $content = null,
): FetchQueryInterface; ): FetchQueryInterface;
} }

View File

@ -24,7 +24,7 @@ readonly class PersonDocumentRepository implements ObjectRepository
private EntityRepository $repository; private EntityRepository $repository;
public function __construct( public function __construct(
private EntityManagerInterface $entityManager private EntityManagerInterface $entityManager,
) { ) {
$this->repository = $this->entityManager->getRepository($this->getClassName()); $this->repository = $this->entityManager->getRepository($this->getClassName());
} }

View File

@ -40,7 +40,7 @@ class AccompanyingCourseDocumentVoter extends AbstractChillVoter implements Prov
public function __construct( public function __construct(
protected LoggerInterface $logger, protected LoggerInterface $logger,
protected Security $security, protected Security $security,
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)

View File

@ -40,7 +40,7 @@ class PersonDocumentVoter extends AbstractChillVoter implements ProvideRoleHiera
public function __construct( public function __construct(
protected LoggerInterface $logger, protected LoggerInterface $logger,
protected Security $security, protected Security $security,
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)

View File

@ -49,7 +49,7 @@ class StoredObjectVoter extends Voter
return match ($askedRole) { return match ($askedRole) {
StoredObjectRoleEnum::SEE => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization || StoredObjectRoleEnum::SEE === $tokenRoleAuthorization, StoredObjectRoleEnum::SEE => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization || StoredObjectRoleEnum::SEE === $tokenRoleAuthorization,
StoredObjectRoleEnum::EDIT => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization StoredObjectRoleEnum::EDIT => StoredObjectRoleEnum::EDIT === $tokenRoleAuthorization,
}; };
} }
} }

View File

@ -43,7 +43,7 @@ class DavTokenAuthenticationEventSubscriber implements EventSubscriberInterface
$token->setAttribute(self::ACTIONS, match ($payload['e']) { $token->setAttribute(self::ACTIONS, match ($payload['e']) {
0 => StoredObjectRoleEnum::SEE, 0 => StoredObjectRoleEnum::SEE,
1 => StoredObjectRoleEnum::EDIT, 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']); $token->setAttribute(self::STORED_OBJECT, $payload['so']);

View File

@ -32,7 +32,7 @@ final class StoredObjectNormalizer implements NormalizerInterface, NormalizerAwa
public function __construct( public function __construct(
private readonly JWTDavTokenProviderInterface $JWTDavTokenProvider, private readonly JWTDavTokenProviderInterface $JWTDavTokenProvider,
private readonly UrlGeneratorInterface $urlGenerator private readonly UrlGeneratorInterface $urlGenerator,
) { ) {
} }

View File

@ -94,7 +94,7 @@ class PersonDocumentACLAwareRepositoryTest extends KernelTestCase
AccompanyingPeriod $period, AccompanyingPeriod $period,
?\DateTimeImmutable $startDate = null, ?\DateTimeImmutable $startDate = null,
?\DateTimeImmutable $endDate = null, ?\DateTimeImmutable $endDate = null,
?string $content = null ?string $content = null,
): void { ): void {
$centerManager = $this->prophesize(CenterResolverManagerInterface::class); $centerManager = $this->prophesize(CenterResolverManagerInterface::class);
$centerManager->resolveCenters(Argument::type(Person::class)) $centerManager->resolveCenters(Argument::type(Person::class))

View File

@ -29,7 +29,7 @@ class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandler
*/ */
public function __construct( public function __construct(
EntityManagerInterface $em, EntityManagerInterface $em,
private readonly TranslatorInterface $translator private readonly TranslatorInterface $translator,
) { ) {
$this->repository = $em->getRepository(AccompanyingCourseDocument::class); $this->repository = $em->getRepository(AccompanyingCourseDocument::class);
} }

View File

@ -555,7 +555,7 @@ final class ParticipationController extends AbstractController
protected function handleRequest( protected function handleRequest(
Request $request, Request $request,
Participation $participation, Participation $participation,
bool $multiple = false bool $multiple = false,
): array|Participation { ): array|Participation {
$em = $this->getDoctrine()->getManager(); $em = $this->getDoctrine()->getManager();

View File

@ -26,7 +26,7 @@ class EventTypeFilter implements ExportElementValidatedInterface, FilterInterfac
{ {
public function __construct( public function __construct(
protected TranslatableStringHelperInterface $translatableStringHelper, protected TranslatableStringHelperInterface $translatableStringHelper,
protected EventTypeRepository $eventTypeRepository protected EventTypeRepository $eventTypeRepository,
) { ) {
} }

View File

@ -26,7 +26,7 @@ class RoleFilter implements ExportElementValidatedInterface, FilterInterface
{ {
public function __construct( public function __construct(
protected TranslatableStringHelperInterface $translatableStringHelper, protected TranslatableStringHelperInterface $translatableStringHelper,
protected RoleRepository $roleRepository protected RoleRepository $roleRepository,
) { ) {
} }

View File

@ -41,7 +41,7 @@ class EventChoiceLoader implements ChoiceLoaderInterface
*/ */
public function __construct( public function __construct(
EntityRepository $eventRepository, EntityRepository $eventRepository,
?array $centers = null ?array $centers = null,
) { ) {
$this->eventRepository = $eventRepository; $this->eventRepository = $eventRepository;

View File

@ -42,7 +42,7 @@ final class PickEventType extends AbstractType
private readonly AuthorizationHelperInterface $authorizationHelper, private readonly AuthorizationHelperInterface $authorizationHelper,
private readonly UrlGeneratorInterface $urlGenerator, private readonly UrlGeneratorInterface $urlGenerator,
private readonly TranslatorInterface $translator, private readonly TranslatorInterface $translator,
private readonly Security $security private readonly Security $security,
) { ) {
} }

View File

@ -31,7 +31,7 @@ final class PickRoleType extends AbstractType
public function __construct( public function __construct(
private readonly TranslatableStringHelperInterface $translatableStringHelper, private readonly TranslatableStringHelperInterface $translatableStringHelper,
private readonly TranslatorInterface $translator, private readonly TranslatorInterface $translator,
private readonly RoleRepository $roleRepository private readonly RoleRepository $roleRepository,
) { ) {
} }

View File

@ -31,7 +31,7 @@ class PersonMenuBuilder implements LocalMenuBuilderInterface
public function __construct( public function __construct(
AuthorizationCheckerInterface $authorizationChecker, AuthorizationCheckerInterface $authorizationChecker,
TranslatorInterface $translator TranslatorInterface $translator,
) { ) {
$this->authorizationChecker = $authorizationChecker; $this->authorizationChecker = $authorizationChecker;
$this->translator = $translator; $this->translator = $translator;

View File

@ -25,7 +25,7 @@ final class EventTypeRepository extends ServiceEntityRepository
public function __construct( public function __construct(
ManagerRegistry $registry, ManagerRegistry $registry,
private readonly EntityManagerInterface $entityManager, private readonly EntityManagerInterface $entityManager,
private readonly TranslatorInterface $translator private readonly TranslatorInterface $translator,
) { ) {
parent::__construct($registry, EventType::class); parent::__construct($registry, EventType::class);
} }

View File

@ -42,7 +42,7 @@ class EventSearch extends AbstractSearch
private readonly EventRepository $eventRepository, private readonly EventRepository $eventRepository,
private readonly AuthorizationHelper $authorizationHelper, private readonly AuthorizationHelper $authorizationHelper,
private readonly \Twig\Environment $templating, private readonly \Twig\Environment $templating,
private readonly PaginatorFactory $paginatorFactory private readonly PaginatorFactory $paginatorFactory,
) { ) {
} }
@ -61,7 +61,7 @@ class EventSearch extends AbstractSearch
$start = 0, $start = 0,
$limit = 50, $limit = 50,
array $options = [], array $options = [],
$format = 'html' $format = 'html',
) { ) {
$total = $this->count($terms); $total = $this->count($terms);
$paginator = $this->paginatorFactory->create($total); $paginator = $this->paginatorFactory->create($total);

View File

@ -50,7 +50,7 @@ class EventVoter extends AbstractChillVoter implements ProvideRoleHierarchyInter
public function __construct( public function __construct(
private readonly AuthorizationHelper $authorizationHelper, private readonly AuthorizationHelper $authorizationHelper,
private readonly LoggerInterface $logger, private readonly LoggerInterface $logger,
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)

View File

@ -47,7 +47,7 @@ class ParticipationVoter extends AbstractChillVoter implements ProvideRoleHierar
public function __construct( public function __construct(
private readonly AuthorizationHelper $authorizationHelper, private readonly AuthorizationHelper $authorizationHelper,
private readonly LoggerInterface $logger, private readonly LoggerInterface $logger,
VoterHelperFactoryInterface $voterHelperFactory VoterHelperFactoryInterface $voterHelperFactory,
) { ) {
$this->voterHelper = $voterHelperFactory $this->voterHelper = $voterHelperFactory
->generate(self::class) ->generate(self::class)

View File

@ -480,7 +480,7 @@ final class ParticipationControllerTest extends WebTestCase
*/ */
protected function getRandomEventWithMultipleParticipations( protected function getRandomEventWithMultipleParticipations(
$centerName = 'Center A', $centerName = 'Center A',
$circleName = 'social' $circleName = 'social',
) { ) {
$event = $this->getRandomEvent($centerName, $circleName); $event = $this->getRandomEvent($centerName, $circleName);

View File

@ -48,7 +48,7 @@ class TimelineEventProvider implements TimelineProviderInterface
public function __construct( public function __construct(
EntityManager $em, EntityManager $em,
AuthorizationHelper $helper, AuthorizationHelper $helper,
TokenStorageInterface $storage TokenStorageInterface $storage,
) { ) {
$this->em = $em; $this->em = $em;
$this->helper = $helper; $this->helper = $helper;
@ -153,7 +153,7 @@ class TimelineEventProvider implements TimelineProviderInterface
private function getFromClause( private function getFromClause(
ClassMetadata $metadataEvent, ClassMetadata $metadataEvent,
ClassMetadata $metadataParticipation, ClassMetadata $metadataParticipation,
ClassMetadata $metadataPerson ClassMetadata $metadataPerson,
) { ) {
$eventParticipationMapping = $metadataParticipation->getAssociationMapping('event'); $eventParticipationMapping = $metadataParticipation->getAssociationMapping('event');
$participationPersonMapping = $metadataParticipation->getAssociationMapping('person'); $participationPersonMapping = $metadataParticipation->getAssociationMapping('person');
@ -181,7 +181,7 @@ class TimelineEventProvider implements TimelineProviderInterface
ClassMetadata $metadataEvent, ClassMetadata $metadataEvent,
ClassMetadata $metadataParticipation, ClassMetadata $metadataParticipation,
ClassMetadata $metadataPerson, ClassMetadata $metadataPerson,
Person $person Person $person,
) { ) {
$role = 'CHILL_EVENT_SEE'; $role = 'CHILL_EVENT_SEE';

View File

@ -560,7 +560,7 @@ class CRUDController extends AbstractController
string $action, string $action,
mixed $entity, mixed $entity,
Request $request, Request $request,
array $defaultTemplateParameters = [] array $defaultTemplateParameters = [],
) { ) {
return $defaultTemplateParameters; return $defaultTemplateParameters;
} }
@ -660,7 +660,7 @@ class CRUDController extends AbstractController
Request $request, Request $request,
int $totalItems, int $totalItems,
PaginatorInterface $paginator, PaginatorInterface $paginator,
?FilterOrderHelper $filterOrder = null ?FilterOrderHelper $filterOrder = null,
) { ) {
$query = $this->queryEntities($action, $request, $paginator, $filterOrder); $query = $this->queryEntities($action, $request, $paginator, $filterOrder);

View File

@ -57,7 +57,7 @@ class ChillImportUsersCommand extends Command
protected LoggerInterface $logger, protected LoggerInterface $logger,
protected UserPasswordEncoderInterface $passwordEncoder, protected UserPasswordEncoderInterface $passwordEncoder,
protected ValidatorInterface $validator, protected ValidatorInterface $validator,
protected UserRepository $userRepository protected UserRepository $userRepository,
) { ) {
parent::__construct('chill:main:import-users'); parent::__construct('chill:main:import-users');
} }

View File

@ -68,7 +68,7 @@ class ChillUserSendRenewPasswordCodeCommand extends Command
LoggerInterface $logger, LoggerInterface $logger,
EntityManagerInterface $em, EntityManagerInterface $em,
RecoverPasswordHelper $recoverPasswordHelper, RecoverPasswordHelper $recoverPasswordHelper,
EventDispatcherInterface $eventDispatcher EventDispatcherInterface $eventDispatcher,
) { ) {
$this->logger = $logger; $this->logger = $logger;
$this->em = $em; $this->em = $em;

View File

@ -20,7 +20,7 @@ use Symfony\Component\Console\Output\OutputInterface;
class ExecuteCronJobCommand extends Command class ExecuteCronJobCommand extends Command
{ {
public function __construct( public function __construct(
private readonly CronManagerInterface $cronManager private readonly CronManagerInterface $cronManager,
) { ) {
parent::__construct('chill:cron-job:execute'); parent::__construct('chill:cron-job:execute');
} }

Some files were not shown because too many files have changed in this diff Show More