@@ -214,7 +214,7 @@ |
||
214 | 214 | { |
215 | 215 | $stockTransfers = $this->stockFacade->getAvailableWarehousesForStore($storeTransfer); |
216 | 216 | |
217 | - return array_map(function (StockTransfer $stockTransfer): string { |
|
217 | + return array_map(function(StockTransfer $stockTransfer): string { |
|
218 | 218 | return $stockTransfer->getName(); |
219 | 219 | }, $stockTransfers); |
220 | 220 | } |
@@ -35,7 +35,7 @@ |
||
35 | 35 | |
36 | 36 | $productPackagingUnitEntity = $this->storeProductPackagingUnit($productPackagingUnitTransfer, $productPackagingUnitAmountTransfer); |
37 | 37 | |
38 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productPackagingUnitEntity): void { |
|
38 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productPackagingUnitEntity): void { |
|
39 | 39 | $this->cleanupProductPackagingUnit($productPackagingUnitEntity); |
40 | 40 | }); |
41 | 41 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | |
31 | 31 | $productPackagingUnitTypeTransfer = $this->storeProductPackagingUnitType($productPackagingUnitTypeTransfer); |
32 | 32 | |
33 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($productPackagingUnitTypeTransfer): void { |
|
33 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($productPackagingUnitTypeTransfer): void { |
|
34 | 34 | $this->cleanupProductPackagingUnitType($productPackagingUnitTypeTransfer); |
35 | 35 | }); |
36 | 36 |
@@ -107,7 +107,7 @@ |
||
107 | 107 | */ |
108 | 108 | protected function filterItemsWithAmount(array $itemTransfers): array |
109 | 109 | { |
110 | - return array_filter($itemTransfers, function (ItemTransfer $itemTransfer) { |
|
110 | + return array_filter($itemTransfers, function(ItemTransfer $itemTransfer) { |
|
111 | 111 | return $itemTransfer->getAmount() === null; |
112 | 112 | }); |
113 | 113 | } |
@@ -498,7 +498,7 @@ |
||
498 | 498 | $availabilityFacade = $this->tester->getFacade(); |
499 | 499 | |
500 | 500 | $container = new Container(); |
501 | - $container->set(AvailabilityDependencyProvider::FACADE_STOCK, function () { |
|
501 | + $container->set(AvailabilityDependencyProvider::FACADE_STOCK, function() { |
|
502 | 502 | return $this->createStockFacadeMock(); |
503 | 503 | }); |
504 | 504 | $availabilityBusinessFactory = new AvailabilityBusinessFactory(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | public function updateStockProductsRelatedToStock(StockTransfer $stockTransfer): void |
44 | 44 | { |
45 | - $this->getTransactionHandler()->handleTransaction(function () use ($stockTransfer): void { |
|
45 | + $this->getTransactionHandler()->handleTransaction(function() use ($stockTransfer): void { |
|
46 | 46 | $this->executeUpdateStockProductsRelatedToStockTransaction($stockTransfer); |
47 | 47 | }); |
48 | 48 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | protected function getStoreNamesFromStoreTransferCollection(array $storeTransfers): array |
53 | 53 | { |
54 | - return array_map(function (StoreTransfer $storeTransfer): string { |
|
54 | + return array_map(function(StoreTransfer $storeTransfer): string { |
|
55 | 55 | return $storeTransfer->getName(); |
56 | 56 | }, $storeTransfers); |
57 | 57 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | return; |
49 | 49 | } |
50 | 50 | |
51 | - $this->getTransactionHandler()->handleTransaction(function () use ($idStock, $storeRelationTransfer): void { |
|
51 | + $this->getTransactionHandler()->handleTransaction(function() use ($idStock, $storeRelationTransfer): void { |
|
52 | 52 | $this->executeUpdateStockStoreRelationshipTransaction($idStock, $storeRelationTransfer); |
53 | 53 | }); |
54 | 54 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function createStockType(TypeTransfer $stockTypeTransfer) |
85 | 85 | { |
86 | - $idStock = $this->getTransactionHandler()->handleTransaction(function () use ($stockTypeTransfer) { |
|
86 | + $idStock = $this->getTransactionHandler()->handleTransaction(function() use ($stockTypeTransfer) { |
|
87 | 87 | return $this->executeCreateStockTypeTransaction($stockTypeTransfer); |
88 | 88 | }); |
89 | 89 | |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | */ |
116 | 116 | public function createStockProduct(StockProductTransfer $transferStockProduct) |
117 | 117 | { |
118 | - $idStockProduct = $this->getTransactionHandler()->handleTransaction(function () use ($transferStockProduct) { |
|
118 | + $idStockProduct = $this->getTransactionHandler()->handleTransaction(function() use ($transferStockProduct) { |
|
119 | 119 | return $this->executeCreateStockProductTransaction($transferStockProduct); |
120 | 120 | }); |
121 | 121 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function updateStockProduct(StockProductTransfer $transferStockProduct) |
148 | 148 | { |
149 | - $idStockProduct = $this->getTransactionHandler()->handleTransaction(function () use ($transferStockProduct) { |
|
149 | + $idStockProduct = $this->getTransactionHandler()->handleTransaction(function() use ($transferStockProduct) { |
|
150 | 150 | return $this->executeUpdateStockProductTransaction($transferStockProduct); |
151 | 151 | }); |
152 | 152 | |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | */ |
187 | 187 | public function decrementStock($sku, $stockType, Decimal $decrementBy): void |
188 | 188 | { |
189 | - $this->getTransactionHandler()->handleTransaction(function () use ($sku, $stockType, $decrementBy) { |
|
189 | + $this->getTransactionHandler()->handleTransaction(function() use ($sku, $stockType, $decrementBy) { |
|
190 | 190 | $this->executeDecrementStockTransaction($sku, $stockType, $decrementBy); |
191 | 191 | }); |
192 | 192 | } |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | public function incrementStock($sku, $stockType, Decimal $incrementBy): void |
222 | 222 | { |
223 | - $this->getTransactionHandler()->handleTransaction(function () use ($sku, $stockType, $incrementBy) { |
|
223 | + $this->getTransactionHandler()->handleTransaction(function() use ($sku, $stockType, $incrementBy) { |
|
224 | 224 | $this->executeIncrementStockTransaction($sku, $stockType, $incrementBy); |
225 | 225 | }); |
226 | 226 | } |