chore: cgl cleanup

This commit is contained in:
Björn Fromme committed 2026-04-16 13:34:54 +02:00
1 parent c0cc183c59
commit a927d6bf59
26 files changed
+45 -66

No files matched your search

+2 -4
View File
@@ -28,8 +28,7 @@ class RoomPricingCalculator
public function calculateRoomPricing(
BookingDto $bookingDto,
string $pricingMode = self::PRICING_MODE_ASSIGNMENT,
): array
{
): array {
// In edit mode, use room data from the booking entity
if (BookingDto::MODE_EDIT === $bookingDto->getMode() && null !== $bookingDto->booking) {
return $this->calculateRoomPricingFromBooking($bookingDto);
@@ -45,8 +44,7 @@ class RoomPricingCalculator
public function calculateRoomTotal(
BookingDto $bookingDto,
string $pricingMode = self::PRICING_MODE_ASSIGNMENT,
): float
{
): float {
$roomPricing = $this->calculateRoomPricing($bookingDto, $pricingMode);
return array_sum(array_column($roomPricing, 'totalPrice'));