php cs fixes after updating php cs fixer

This commit is contained in:
2024-01-10 10:31:25 +01:00
parent 60ede58af0
commit 3c8e59e088
682 changed files with 2097 additions and 882 deletions

View File

@@ -33,7 +33,9 @@ class ParticipationController extends AbstractController
/**
* ParticipationController constructor.
*/
public function __construct(private readonly LoggerInterface $logger, private readonly TranslatorInterface $translator) {}
public function __construct(private readonly LoggerInterface $logger, private readonly TranslatorInterface $translator)
{
}
/**
* @\Symfony\Component\Routing\Annotation\Route(path="/{_locale}/event/participation/create", name="chill_event_participation_create")
@@ -239,7 +241,7 @@ class ParticipationController extends AbstractController
public function deleteAction($participation_id, Request $request): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
$em = $this->getDoctrine()->getManager();
$participation = $em->getRepository(\Chill\EventBundle\Entity\Participation::class)->findOneBy([
$participation = $em->getRepository(Participation::class)->findOneBy([
'id' => $participation_id,
]);
@@ -319,7 +321,7 @@ class ParticipationController extends AbstractController
*/
public function editMultipleAction($event_id): Response|\Symfony\Component\HttpFoundation\RedirectResponse
{
$event = $this->getDoctrine()->getRepository(\Chill\EventBundle\Entity\Event::class)
$event = $this->getDoctrine()->getRepository(Event::class)
->find($event_id);
if (null === $event) {
@@ -455,8 +457,8 @@ class ParticipationController extends AbstractController
*/
public function updateMultipleAction(mixed $event_id, Request $request)
{
/** @var \Chill\EventBundle\Entity\Event $event */
$event = $this->getDoctrine()->getRepository(\Chill\EventBundle\Entity\Event::class)
/** @var Event $event */
$event = $this->getDoctrine()->getRepository(Event::class)
->find($event_id);
if (null === $event) {
@@ -498,7 +500,7 @@ class ParticipationController extends AbstractController
}
/**
* @return \Symfony\Component\Form\FormInterface
* @return FormInterface
*/
protected function createEditFormMultiple(Collection $participations, Event $event)
{
@@ -557,7 +559,7 @@ class ParticipationController extends AbstractController
// prevent error: `Argument 2 passed to ::getInt() must be of the type int, null given`
if (null !== $event_id) {
$event = $em->getRepository(\Chill\EventBundle\Entity\Event::class)
$event = $em->getRepository(Event::class)
->find($event_id);
if (null === $event) {
@@ -751,7 +753,7 @@ class ParticipationController extends AbstractController
}
/**
* @return \Symfony\Component\Form\FormInterface
* @return FormInterface
*/
private function createDeleteForm($participation_id)
{