@@ -82,8 +82,7 @@ |
||
82 | 82 | protected function getPrice(OrderTransfer $orderTransfer, ShipmentPriceTransfer $shipmentMethodPriceTransfer): ?int |
83 | 83 | { |
84 | 84 | return $orderTransfer->getPriceMode() === ShipmentConstants::PRICE_MODE_GROSS ? |
85 | - $shipmentMethodPriceTransfer->getDefaultGrossPrice() : |
|
86 | - $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
85 | + $shipmentMethodPriceTransfer->getDefaultGrossPrice() : $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
87 | 86 | } |
88 | 87 | |
89 | 88 | /** |
@@ -190,8 +190,7 @@ |
||
190 | 190 | protected function getPriceByMode(QuoteTransfer $quoteTransfer, ShipmentPriceTransfer $shipmentMethodPriceTransfer): ?int |
191 | 191 | { |
192 | 192 | return $quoteTransfer->getPriceMode() === ShipmentConstants::PRICE_MODE_GROSS ? |
193 | - $shipmentMethodPriceTransfer->getDefaultGrossPrice() : |
|
194 | - $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
193 | + $shipmentMethodPriceTransfer->getDefaultGrossPrice() : $shipmentMethodPriceTransfer->getDefaultNetPrice(); |
|
195 | 194 | } |
196 | 195 | |
197 | 196 | /** |
@@ -108,7 +108,7 @@ |
||
108 | 108 | $this->createDateConstraint(), |
109 | 109 | $this->createDateGreaterThanOrEqualConstraint(static::VALIDATION_DATE_TODAY), |
110 | 110 | ], |
111 | - 'validation_groups' => function (FormInterface $form) { |
|
111 | + 'validation_groups' => function(FormInterface $form) { |
|
112 | 112 | $formParent = $form->getParent(); |
113 | 113 | if ($formParent === null || !$formParent->has(static::VALIDATION_DATE_TODAY)) { |
114 | 114 | return [static::VALIDATION_GROUP_SHIPPING_ADDRESS]; |
@@ -417,7 +417,7 @@ |
||
417 | 417 | ->filterByIso2Code($countryIso2Code) |
418 | 418 | ->endUse() |
419 | 419 | ->_or() |
420 | - ->filterByName(TaxConstants::TAX_EXEMPT_PLACEHOLDER) |
|
420 | + ->filterByName(TaxConstants::TAX_EXEMPT_PLACEHOLDER) |
|
421 | 421 | ->endUse() |
422 | 422 | ->endUse() |
423 | 423 | ->withColumn(SpyTaxSetTableMap::COL_NAME) |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $priceProductScheduleTransfer = $this |
71 | 71 | ->expandPriceProductScheduleTransferWithPriceProductScheduleList($priceProductScheduleTransfer); |
72 | 72 | |
73 | - return $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): PriceProductScheduleResponseTransfer { |
|
73 | + return $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): PriceProductScheduleResponseTransfer { |
|
74 | 74 | return $this->executeCreateLogicTransaction($priceProductScheduleTransfer); |
75 | 75 | }); |
76 | 76 | } |
@@ -70,7 +70,7 @@ |
||
70 | 70 | return; |
71 | 71 | } |
72 | 72 | |
73 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
73 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
74 | 74 | $this->executeRemoveLogicTransaction($priceProductScheduleTransfer); |
75 | 75 | }); |
76 | 76 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | $productSchedulePricesForDisable = $this->priceProductScheduleRepository->findPriceProductSchedulesToDisable(); |
79 | 79 | |
80 | 80 | foreach ($productSchedulePricesForDisable as $priceProductScheduleTransfer) { |
81 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
81 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
82 | 82 | $this->executeExitLogicTransaction($priceProductScheduleTransfer); |
83 | 83 | }); |
84 | 84 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | ->findPriceProductSchedulesToDisableByIdProductAbstract($idProductAbstract); |
96 | 96 | |
97 | 97 | foreach ($productSchedulePricesForDisable as $priceProductScheduleTransfer) { |
98 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
98 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
99 | 99 | $this->executeExitLogicTransaction($priceProductScheduleTransfer); |
100 | 100 | }); |
101 | 101 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | ->findPriceProductSchedulesToDisableByIdProductConcrete($idProductConcrete); |
113 | 113 | |
114 | 114 | foreach ($productSchedulePricesForDisable as $priceProductScheduleTransfer) { |
115 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
115 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
116 | 116 | $this->executeExitLogicTransaction($priceProductScheduleTransfer); |
117 | 117 | }); |
118 | 118 | } |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | ->findSimilarPriceProductSchedulesToDisable($priceProductScheduleTransfer); |
131 | 131 | |
132 | 132 | foreach ($productSchedulePricesForDisable as $priceProductScheduleTransfer) { |
133 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
133 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
134 | 134 | $this->executeExitLogicTransaction($priceProductScheduleTransfer); |
135 | 135 | }); |
136 | 136 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function updateAndApplyPriceProductSchedule(PriceProductScheduleTransfer $priceProductScheduleTransfer): PriceProductScheduleResponseTransfer |
51 | 51 | { |
52 | - return $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): PriceProductScheduleResponseTransfer { |
|
52 | + return $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): PriceProductScheduleResponseTransfer { |
|
53 | 53 | return $this->executeUpdateAndApplyLogicTransaction($priceProductScheduleTransfer); |
54 | 54 | }); |
55 | 55 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | public function applyScheduledPrices(PriceProductScheduleTransfer $priceProductScheduleTransfer): void |
65 | 65 | { |
66 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer) { |
|
66 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer) { |
|
67 | 67 | $this->executeApplyScheduledPrices($priceProductScheduleTransfer); |
68 | 68 | }); |
69 | 69 | } |