@@ -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 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | public function execute(array $priceProductScheduleForEnable): void |
| 58 | 58 | { |
| 59 | 59 | foreach ($priceProductScheduleForEnable as $priceProductScheduleTransfer) { |
| 60 | - $this->getTransactionHandler()->handleTransaction(function () use ($priceProductScheduleTransfer): void { |
|
| 60 | + $this->getTransactionHandler()->handleTransaction(function() use ($priceProductScheduleTransfer): void { |
|
| 61 | 61 | $this->executeApplyScheduledPrices($priceProductScheduleTransfer); |
| 62 | 62 | }); |
| 63 | 63 | } |
@@ -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 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function register(Application $app) |
| 54 | 54 | { |
| 55 | - $app->extend('dispatcher', function (EventDispatcherInterface $eventDispatcher) { |
|
| 55 | + $app->extend('dispatcher', function(EventDispatcherInterface $eventDispatcher) { |
|
| 56 | 56 | $eventDispatcher->addListener( |
| 57 | 57 | KernelEvents::CONTROLLER, |
| 58 | 58 | [ |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function boot(Application $app) |
| 88 | 88 | { |
| 89 | - $app->before(function (Request $request) { |
|
| 89 | + $app->before(function(Request $request) { |
|
| 90 | 90 | TransferServer::getInstance()->setRequest($request); |
| 91 | 91 | }); |
| 92 | 92 | } |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | * {@inheritDoc} |
| 18 | 18 | * |
| 19 | 19 | * @api |
| 20 | - |
|
| 21 | 20 | * @return \Generated\Shared\Transfer\SalesOrderThresholdTypeTransfer |
| 22 | 21 | */ |
| 23 | 22 | public function toTransfer(): SalesOrderThresholdTypeTransfer |