mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
update cs after php-cs-fixer upgrade
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -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);
|
||||
|
@@ -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)
|
||||
|
@@ -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)
|
||||
|
@@ -480,7 +480,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
*/
|
||||
protected function getRandomEventWithMultipleParticipations(
|
||||
$centerName = 'Center A',
|
||||
$circleName = 'social'
|
||||
$circleName = 'social',
|
||||
) {
|
||||
$event = $this->getRandomEvent($centerName, $circleName);
|
||||
|
||||
|
@@ -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';
|
||||
|
||||
|
Reference in New Issue
Block a user