@@ -107,7 +107,7 @@ |
||
107 | 107 | array $productAbstractIds, |
108 | 108 | StoreTransfer $storeTransfer |
109 | 109 | ): SpyProductAbstractLocalizedAttributesQuery { |
110 | - $storeLocaleIsoCodes = array_map(function (string $localeIsoCode) { |
|
110 | + $storeLocaleIsoCodes = array_map(function(string $localeIsoCode) { |
|
111 | 111 | return $localeIsoCode; |
112 | 112 | }, $storeTransfer->getAvailableLocaleIsoCodes()); |
113 | 113 |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | $this->assertProductManagementAttributeTransferRequirements($productManagementAttributeTransfer); |
77 | 77 | |
78 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productManagementAttributeTransfer): ProductManagementAttributeTransfer { |
|
78 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productManagementAttributeTransfer): ProductManagementAttributeTransfer { |
|
79 | 79 | return $this->executeCreateProductManagementAttributeTransaction($productManagementAttributeTransfer); |
80 | 80 | }); |
81 | 81 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $this->assertProductManagementAttributeTransferHasId($productManagementAttributeTransfer); |
91 | 91 | $this->assertProductManagementAttributeTransferRequirements($productManagementAttributeTransfer); |
92 | 92 | |
93 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productManagementAttributeTransfer): ProductManagementAttributeTransfer { |
|
93 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productManagementAttributeTransfer): ProductManagementAttributeTransfer { |
|
94 | 94 | return $this->executeUpdateProductManagementAttributeTransaction($productManagementAttributeTransfer); |
95 | 95 | }); |
96 | 96 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | ->setValidationMessages($this->validator->getMessages()); |
79 | 79 | } |
80 | 80 | |
81 | - $newSalesOrderItem = $this->getTransactionHandler()->handleTransaction(function () use ($salesOrderItemEntity, $quantityToSplit): SpySalesOrderItem { |
|
81 | + $newSalesOrderItem = $this->getTransactionHandler()->handleTransaction(function() use ($salesOrderItemEntity, $quantityToSplit): SpySalesOrderItem { |
|
82 | 82 | return $this->executeSplitTransaction($salesOrderItemEntity, $quantityToSplit); |
83 | 83 | }); |
84 | 84 |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function touchProductAbstractActive($idProductAbstract) |
85 | 85 | { |
86 | - $this->getTransactionHandler()->handleTransaction(function () use ($idProductAbstract): void { |
|
86 | + $this->getTransactionHandler()->handleTransaction(function() use ($idProductAbstract): void { |
|
87 | 87 | $this->executeTouchProductAbstractActiveTransaction($idProductAbstract); |
88 | 88 | }); |
89 | 89 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | public function touchProductAbstractInactive($idProductAbstract) |
97 | 97 | { |
98 | - $this->getTransactionHandler()->handleTransaction(function () use ($idProductAbstract): void { |
|
98 | + $this->getTransactionHandler()->handleTransaction(function() use ($idProductAbstract): void { |
|
99 | 99 | $this->executeTouchProductAbstractInactiveTransaction($idProductAbstract); |
100 | 100 | }); |
101 | 101 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function touchProductAbstractDeleted($idProductAbstract) |
109 | 109 | { |
110 | - $this->getTransactionHandler()->handleTransaction(function () use ($idProductAbstract): void { |
|
110 | + $this->getTransactionHandler()->handleTransaction(function() use ($idProductAbstract): void { |
|
111 | 111 | $this->executeTouchProductAbstractDeletedTransaction($idProductAbstract); |
112 | 112 | }); |
113 | 113 | } |
@@ -16,7 +16,7 @@ |
||
16 | 16 | */ |
17 | 17 | public function touchProductAbstract($idProductAbstract) |
18 | 18 | { |
19 | - $this->getTransactionHandler()->handleTransaction(function () use ($idProductAbstract): void { |
|
19 | + $this->getTransactionHandler()->handleTransaction(function() use ($idProductAbstract): void { |
|
20 | 20 | $this->executeTouchProductAbstractTransaction($idProductAbstract); |
21 | 21 | }); |
22 | 22 | } |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | */ |
125 | 125 | public function createProductAbstract(ProductAbstractTransfer $productAbstractTransfer) |
126 | 126 | { |
127 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer): int { |
|
127 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer): int { |
|
128 | 128 | return $this->executeCreateProductAbstractTransaction($productAbstractTransfer); |
129 | 129 | }); |
130 | 130 | } |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | public function saveProductAbstract(ProductAbstractTransfer $productAbstractTransfer) |
138 | 138 | { |
139 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer) { |
|
139 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer) { |
|
140 | 140 | return $this->executeUpdateProductAbstractTransaction($productAbstractTransfer); |
141 | 141 | }); |
142 | 142 | } |
@@ -361,7 +361,7 @@ discard block |
||
361 | 361 | { |
362 | 362 | $productAbstractTransfer->requireIdProductAbstract(); |
363 | 363 | |
364 | - $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer): void { |
|
364 | + $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer): void { |
|
365 | 365 | $this->executePersistProductAbstractLocalizedAttributesTransaction($productAbstractTransfer); |
366 | 366 | }); |
367 | 367 | } |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function createProductUrl(ProductAbstractTransfer $productAbstractTransfer) |
76 | 76 | { |
77 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer): ProductUrlTransfer { |
|
77 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer): ProductUrlTransfer { |
|
78 | 78 | return $this->executeCreateProductUrlTransaction($productAbstractTransfer); |
79 | 79 | }); |
80 | 80 | } |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | */ |
87 | 87 | public function updateProductUrl(ProductAbstractTransfer $productAbstractTransfer) |
88 | 88 | { |
89 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer): ProductUrlTransfer { |
|
89 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer): ProductUrlTransfer { |
|
90 | 90 | return $this->executeUpdateProductUrlTransaction($productAbstractTransfer); |
91 | 91 | }); |
92 | 92 | } |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function deleteProductUrl(ProductAbstractTransfer $productAbstractTransfer) |
127 | 127 | { |
128 | - $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer) { |
|
128 | + $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer) { |
|
129 | 129 | $this->executeDeleteProductUrlTransaction($productAbstractTransfer); |
130 | 130 | }); |
131 | 131 | } |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | */ |
138 | 138 | public function touchProductAbstractUrlActive(ProductAbstractTransfer $productAbstractTransfer) |
139 | 139 | { |
140 | - $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer) { |
|
140 | + $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer) { |
|
141 | 141 | $this->executeTouchProductAbstractUrlActiveTransaction($productAbstractTransfer); |
142 | 142 | }); |
143 | 143 | } |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | public function touchProductAbstractUrlDeleted(ProductAbstractTransfer $productAbstractTransfer) |
151 | 151 | { |
152 | - $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer) { |
|
152 | + $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer) { |
|
153 | 153 | $this->executeTouchProductAbstractUrlDeletedTransaction($productAbstractTransfer); |
154 | 154 | }); |
155 | 155 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | */ |
54 | 54 | public function addProduct(ProductAbstractTransfer $productAbstractTransfer, array $productConcreteCollection) |
55 | 55 | { |
56 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer, $productConcreteCollection): int { |
|
56 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer, $productConcreteCollection): int { |
|
57 | 57 | return $this->executeAddProductTransaction($productAbstractTransfer, $productConcreteCollection); |
58 | 58 | }); |
59 | 59 | } |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | */ |
67 | 67 | public function saveProduct(ProductAbstractTransfer $productAbstractTransfer, array $productConcreteCollection) |
68 | 68 | { |
69 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productAbstractTransfer, $productConcreteCollection): int { |
|
69 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productAbstractTransfer, $productConcreteCollection): int { |
|
70 | 70 | return $this->executeSaveProductTransaction($productAbstractTransfer, $productConcreteCollection); |
71 | 71 | }); |
72 | 72 | } |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function createProductConcrete(ProductConcreteTransfer $productConcreteTransfer) |
125 | 125 | { |
126 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productConcreteTransfer): int { |
|
126 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productConcreteTransfer): int { |
|
127 | 127 | return $this->executeCreateProductConcrete($productConcreteTransfer); |
128 | 128 | }); |
129 | 129 | } |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | */ |
136 | 136 | public function saveProductConcrete(ProductConcreteTransfer $productConcreteTransfer) |
137 | 137 | { |
138 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productConcreteTransfer): int { |
|
138 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productConcreteTransfer): int { |
|
139 | 139 | return $this->executeUpdateProductConcreteTransaction($productConcreteTransfer); |
140 | 140 | }); |
141 | 141 | } |
@@ -595,7 +595,7 @@ discard block |
||
595 | 595 | { |
596 | 596 | $productConcreteTransfer->requireIdProductConcrete(); |
597 | 597 | |
598 | - $this->getTransactionHandler()->handleTransaction(function () use ($productConcreteTransfer): void { |
|
598 | + $this->getTransactionHandler()->handleTransaction(function() use ($productConcreteTransfer): void { |
|
599 | 599 | $this->executePersistProductConcreteLocalizedAttributesTransaction($productConcreteTransfer); |
600 | 600 | }); |
601 | 601 | } |