PHP CS Fixer updated (3.63.1 -> v3.64.0)

This commit is contained in:
2024-09-04 14:38:56 +02:00
parent 063bc2857f
commit 313fb9ffdf
302 changed files with 391 additions and 391 deletions

View File

@@ -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'])]

View File

@@ -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();

View File

@@ -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

View File

@@ -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

View File

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

View File

@@ -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)

View File

@@ -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)

View File

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

View File

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

View File

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

View File

@@ -25,7 +25,7 @@ class EventStoredObjectVoter extends AbstractStoredObjectVoter
public function __construct(
private readonly EventRepository $repository,
Security $security,
WorkflowStoredObjectPermissionHelper $workflowDocumentService
WorkflowStoredObjectPermissionHelper $workflowDocumentService,
) {
parent::__construct($security, $workflowDocumentService);
}

View File

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

View File

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

View File

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

View File

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