chore: code cleanup with rector and php-cs-fixer

This commit is contained in:
Björn Fromme
2026-05-04 17:20:01 +02:00
parent d211425ff2
commit 1fa8f88a6d
38 changed files with 130 additions and 98 deletions
@@ -85,7 +85,7 @@ class Step1Controller extends AbstractBookingCreateController
return $this->render('booking/create/step_1.html.twig', [
'bookingCreateContext' => $context,
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -5,10 +5,10 @@ declare(strict_types=1);
namespace App\Controller\Booking\Create;
use App\BusProNet\Model\Travel;
use App\Entity\User;
use App\Exception\BookingSessionNotFoundException;
use App\Exception\HotelNotInTravelException;
use App\Exception\TravelNotFoundException;
use App\Entity\User;
use App\Form\BookingCreateStep2Type;
use App\Form\Model\BookingDto;
use App\Form\Model\ParticipantDto;
@@ -136,7 +136,7 @@ class Step2ParticipantController extends AbstractController
);
return $this->render('booking/create/step_2_participant.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participantIndex' => $index,
'bookingCreateContext' => $bookingCreateContext,
'bookingDto' => $bookingCreateContext->bookingDto,
@@ -228,7 +228,7 @@ class Step3Controller extends AbstractBookingCreateController
return $this->render('booking/create/step_3.html.twig', [
'bookingCreateContext' => $context,
'form' => $form->createView(),
'form' => $form,
]);
}
@@ -182,7 +182,7 @@ class Step4Controller extends AbstractBookingCreateController
return $this->render('booking/create/step_4.html.twig', [
'bookingCreateContext' => $bookingCreateContext,
'form' => $form->createView(),
'form' => $form,
'newsletterOptInVisible' => $newsletterOptInVisible,
'newsletterTargetEmail' => $newsletterTargetEmail,
]);
@@ -9,8 +9,8 @@ use App\Entity\User;
use App\Exception\TravelNotFoundException;
use App\Form\BookingEditType;
use App\Form\Model\BookingDto;
use App\Model\BookingEditSubmissionResult;
use App\Htmx\HxTrait;
use App\Model\BookingEditSubmissionResult;
use App\Service\BookingChangeTracker;
use App\Service\BookingEditContextFactory;
use App\Service\BookingEditDataLoader;
@@ -99,7 +99,7 @@ class ParticipantController extends AbstractController
$context = $this->editContextFactory->createParticipantContext($bookingDto, $bookingData);
return $this->render('booking/edit/participant.html.twig', [
'form' => $form->createView(),
'form' => $form,
'participantIndex' => $index,
'bookingEditContext' => $context,
'bookingDto' => $context->bookingDto,