chore: cgl cleanup
This commit is contained in:
1 parent
c0cc183c59
commit
a927d6bf59
26 files changed
+45
-66
No files matched your search
@@ -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'));
|
||||
|
||||
Reference in new issue
Block a user