chore: fix phpstan errors
This commit is contained in:
1 parent
4e925171b3
commit
0fcecc9c58
109 files changed
+510
-429
No files matched your search
@@ -26,8 +26,8 @@ class BookingPriceMismatchAnalyzer
|
||||
{
|
||||
$pricingBreakdown = $this->pricingAssembler->getPricingBreakdown($bookingCreateDto);
|
||||
|
||||
$roomLines = $pricingBreakdown['rooms'] ?? [];
|
||||
$serviceGroups = $pricingBreakdown['services'] ?? [];
|
||||
$roomLines = $pricingBreakdown['rooms'];
|
||||
$serviceGroups = $pricingBreakdown['services'];
|
||||
|
||||
$roomTotal = round(array_sum(array_column($roomLines, 'totalPrice')), 2);
|
||||
$serviceTotal = round(array_sum(array_column($serviceGroups, 'groupTotal')), 2);
|
||||
@@ -70,14 +70,14 @@ class BookingPriceMismatchAnalyzer
|
||||
$apiTotal = round($response->totalPrice ?? 0.0, 2);
|
||||
$apiServiceTotal = round($apiTotal - $apiRoomTotal, 2);
|
||||
|
||||
$deltaTotal = round(($pricingBreakdown['grandTotal'] ?? 0.0) - $apiTotal, 2);
|
||||
$deltaTotal = round($pricingBreakdown['grandTotal'] - $apiTotal, 2);
|
||||
$deltaRoom = round($roomTotal - $apiRoomTotal, 2);
|
||||
$deltaService = round($serviceTotal - $apiServiceTotal, 2);
|
||||
$deltaInsurance = round($insuranceTotal - $apiInsuranceTotal, 2);
|
||||
|
||||
return [
|
||||
'localBreakdown' => [
|
||||
'grandTotal' => round($pricingBreakdown['grandTotal'] ?? 0.0, 2),
|
||||
'grandTotal' => round($pricingBreakdown['grandTotal'], 2),
|
||||
'roomTotal' => $roomTotal,
|
||||
'serviceTotal' => $serviceTotal,
|
||||
'insuranceTotal' => $insuranceTotal,
|
||||
|
||||
Reference in new issue
Block a user