@@ -69,7 +69,7 @@ |
||
69 | 69 | $productRelationTransfer->requireProductRelationType() |
70 | 70 | ->requireProductRelationKey(); |
71 | 71 | |
72 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productRelationTransfer) { |
|
72 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productRelationTransfer) { |
|
73 | 73 | return $this->executeCreateProductRelationTransaction($productRelationTransfer); |
74 | 74 | }); |
75 | 75 | } |
@@ -59,7 +59,7 @@ |
||
59 | 59 | */ |
60 | 60 | public function deleteProductRelation(int $idProductRelation): ProductRelationResponseTransfer |
61 | 61 | { |
62 | - return $this->getTransactionHandler()->handleTransaction(function () use ($idProductRelation) { |
|
62 | + return $this->getTransactionHandler()->handleTransaction(function() use ($idProductRelation) { |
|
63 | 63 | return $this->executeDeleteProductRelationTransaction($idProductRelation); |
64 | 64 | }); |
65 | 65 | } |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | public function update(StoreRelationTransfer $storeRelationTransfer): void |
47 | 47 | { |
48 | - $this->getTransactionHandler()->handleTransaction(function () use ($storeRelationTransfer) { |
|
48 | + $this->getTransactionHandler()->handleTransaction(function() use ($storeRelationTransfer) { |
|
49 | 49 | $this->executeUpdateStoreRelationTransaction($storeRelationTransfer); |
50 | 50 | }); |
51 | 51 | } |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function updateProductRelation(ProductRelationTransfer $productRelationTransfer): ProductRelationResponseTransfer |
69 | 69 | { |
70 | - return $this->getTransactionHandler()->handleTransaction(function () use ($productRelationTransfer) { |
|
70 | + return $this->getTransactionHandler()->handleTransaction(function() use ($productRelationTransfer) { |
|
71 | 71 | return $this->executeUpdateProductRelationTransaction($productRelationTransfer); |
72 | 72 | }); |
73 | 73 | } |
@@ -288,7 +288,7 @@ |
||
288 | 288 | ->distinct() |
289 | 289 | ->useProductRelationQuery() |
290 | 290 | ->filterByFkProductAbstract($productRelationCriteriaTransfer->getFkProductAbstract()) |
291 | - ->filterByProductRelationKey($productRelationCriteriaTransfer->getProductRelationKey(), Criteria::NOT_EQUAL) |
|
291 | + ->filterByProductRelationKey($productRelationCriteriaTransfer->getProductRelationKey(), Criteria::NOT_EQUAL) |
|
292 | 292 | ->useSpyProductRelationTypeQuery() |
293 | 293 | ->filterByKey($productRelationCriteriaTransfer->getRelationTypeKey()) |
294 | 294 | ->endUse() |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | protected function getBoolToStrFilter(): TwigFilter |
59 | 59 | { |
60 | - return new TwigFilter(static::FILTER_NAME_BOOL_TO_STR, function ($value) { |
|
60 | + return new TwigFilter(static::FILTER_NAME_BOOL_TO_STR, function($value) { |
|
61 | 61 | if (!is_bool($value)) { |
62 | 62 | throw new RuntimeError(sprintf( |
63 | 63 | 'The "%s" filter expects boolean, got "%s".', |
@@ -93,7 +93,7 @@ |
||
93 | 93 | return $returnResponseTransfer; |
94 | 94 | } |
95 | 95 | |
96 | - return $this->getTransactionHandler()->handleTransaction(function () use ($returnCreateRequestTransfer, $itemTransfers) { |
|
96 | + return $this->getTransactionHandler()->handleTransaction(function() use ($returnCreateRequestTransfer, $itemTransfers) { |
|
97 | 97 | return $this->executeCreateReturnTransaction($returnCreateRequestTransfer, $itemTransfers); |
98 | 98 | }); |
99 | 99 | } |
@@ -220,7 +220,7 @@ |
||
220 | 220 | |
221 | 221 | $orderItemExpanderPluginMock |
222 | 222 | ->method('expand') |
223 | - ->willReturnCallback(function (array $itemTransfers) { |
|
223 | + ->willReturnCallback(function(array $itemTransfers) { |
|
224 | 224 | foreach ($itemTransfers as $itemTransfer) { |
225 | 225 | $itemTransfer->setIdSalesOrderItem(static::FAKE_ID_SALES_ORDER_ITEM); |
226 | 226 | } |
@@ -120,7 +120,7 @@ |
||
120 | 120 | |
121 | 121 | $orderItemExpanderPluginMock |
122 | 122 | ->method('expand') |
123 | - ->willReturnCallback(function (array $itemTransfers) { |
|
123 | + ->willReturnCallback(function(array $itemTransfers) { |
|
124 | 124 | foreach ($itemTransfers as $itemTransfer) { |
125 | 125 | $itemTransfer->setIsReturnable(false); |
126 | 126 | } |