chore: cgl cleanup

This commit is contained in:
Björn Fromme
2026-04-16 13:34:54 +02:00
parent c0cc183c59
commit a927d6bf59
26 changed files with 45 additions and 66 deletions
+2 -4
View File
@@ -13,8 +13,8 @@ use App\BusProNet\XmlLoader\AgencyLoader;
use App\Exception\NoRoomsAvailableException;
use App\Form\Model\BookingDto;
use App\Form\Model\ParticipantDto;
use App\Form\Service\ServiceAgeEvaluator;
use App\Form\Model\RoomSelectionDto;
use App\Form\Service\ServiceAgeEvaluator;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -539,8 +539,7 @@ class BookingConfigurator
BookingDto $bookingDto,
int $participantIndex,
ServiceAgeEvaluator $ageEvaluator,
): bool
{
): bool {
if (false === $ageEvaluator->canEvaluate($service)) {
return true;
}
@@ -640,5 +639,4 @@ class BookingConfigurator
$bookingDto->bookingStatus = $this->bookingStatusRuleRegistry->evaluateStatus($bookingDto);
}
}