mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
php cs fixes after updating php cs fixer
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user