@@ -124,7 +124,7 @@ |
||
124 | 124 | protected function executeTestMethod(Actor $I): FixturesContainerInterface |
125 | 125 | { |
126 | 126 | if (!method_exists($this->testClassInstance, $this->testMethod)) { |
127 | - throw new TestRuntimeException("Method {$this->testMethod} can't be found in tested class"); |
|
127 | + throw new TestRuntimeException("method {$this->testMethod} can't be found in tested class"); |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | return call_user_func([$this->testClassInstance, $this->testMethod], $I, $this->scenario); |
@@ -230,11 +230,11 @@ |
||
230 | 230 | */ |
231 | 231 | protected function getProductWithoutPriceSkus(array $priceProductTransfers, array $items): array |
232 | 232 | { |
233 | - $totalItemSkus = array_map(function (ItemTransfer $item) { |
|
233 | + $totalItemSkus = array_map(function(ItemTransfer $item) { |
|
234 | 234 | return $item->getSku(); |
235 | 235 | }, $items); |
236 | 236 | |
237 | - $validProductSkus = array_map(function (PriceProductTransfer $priceProductTransfer) { |
|
237 | + $validProductSkus = array_map(function(PriceProductTransfer $priceProductTransfer) { |
|
238 | 238 | return $priceProductTransfer->getSkuProduct(); |
239 | 239 | }, $priceProductTransfers); |
240 | 240 |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | */ |
229 | 229 | protected function getStoreTransfersForPriceProductFilters(array $priceProductFilterTransfers): array |
230 | 230 | { |
231 | - $storeNames = array_map(function (PriceProductFilterTransfer $priceProductFilterTransfer) { |
|
231 | + $storeNames = array_map(function(PriceProductFilterTransfer $priceProductFilterTransfer) { |
|
232 | 232 | return $priceProductFilterTransfer->getStoreName(); |
233 | 233 | }, $priceProductFilterTransfers); |
234 | 234 | |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | */ |
260 | 260 | protected function getCurrencyTransfersForPriceProductFilters(array $priceProductFilterTransfers): array |
261 | 261 | { |
262 | - $isoCodes = array_map(function (PriceProductFilterTransfer $priceProductFilterTransfer) { |
|
262 | + $isoCodes = array_map(function(PriceProductFilterTransfer $priceProductFilterTransfer) { |
|
263 | 263 | return $priceProductFilterTransfer->getCurrencyIsoCode(); |
264 | 264 | }, $priceProductFilterTransfers); |
265 | 265 |
@@ -36,7 +36,7 @@ |
||
36 | 36 | */ |
37 | 37 | public function expandItems(CartChangeTransfer $cartChangeTransfer) |
38 | 38 | { |
39 | - $productIds = array_map(function (ItemTransfer $itemTransfer) { |
|
39 | + $productIds = array_map(function(ItemTransfer $itemTransfer) { |
|
40 | 40 | return $itemTransfer->getId(); |
41 | 41 | }, $cartChangeTransfer->getItems()->getArrayCopy()); |
42 | 42 | $productImages = $this->productImageFacade->getProductImagesByProductIdsAndProductImageSetName($productIds, ProductImageCartConnectorConfig::DEFAULT_IMAGE_SET_NAME); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | ->requireOwnerId() |
88 | 88 | ->requireOwnerType(); |
89 | 89 | |
90 | - return $this->getTransactionHandler()->handleTransaction(function () use ($commentFilterTransfer, $commentRequestTransfer) { |
|
90 | + return $this->getTransactionHandler()->handleTransaction(function() use ($commentFilterTransfer, $commentRequestTransfer) { |
|
91 | 91 | return $this->executeDuplicateCommentThreadTransaction($commentFilterTransfer, $commentRequestTransfer); |
92 | 92 | }); |
93 | 93 | } |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | */ |
311 | 311 | protected function filterOutResourceWithParentPlugins(array $resourceRoutePlugins): array |
312 | 312 | { |
313 | - return array_values(array_filter($resourceRoutePlugins, function ($resourcePlugin) { |
|
313 | + return array_values(array_filter($resourceRoutePlugins, function($resourcePlugin) { |
|
314 | 314 | return !$resourcePlugin instanceof ResourceWithParentPluginInterface; |
315 | 315 | })); |
316 | 316 | } |
@@ -322,7 +322,7 @@ discard block |
||
322 | 322 | */ |
323 | 323 | protected function filterOutResourceWithoutParentPlugins(array $resourceRoutePlugins): array |
324 | 324 | { |
325 | - return array_values(array_filter($resourceRoutePlugins, function ($resourcePlugin) { |
|
325 | + return array_values(array_filter($resourceRoutePlugins, function($resourcePlugin) { |
|
326 | 326 | return $resourcePlugin instanceof ResourceWithParentPluginInterface; |
327 | 327 | })); |
328 | 328 | } |
@@ -448,7 +448,7 @@ discard block |
||
448 | 448 | $collectedDiscounts = $calculator->calculate($discounts, $quoteTransfer); |
449 | 449 | |
450 | 450 | $this->assertCount(2, $collectedDiscounts); |
451 | - $discountAmounts = array_map(function (CollectedDiscountTransfer $collectedDiscountTransfer) { |
|
451 | + $discountAmounts = array_map(function(CollectedDiscountTransfer $collectedDiscountTransfer) { |
|
452 | 452 | return $collectedDiscountTransfer->getDiscount()->getAmount(); |
453 | 453 | }, $collectedDiscounts); |
454 | 454 | $this->assertEqualsCanonicalizing($discountAmounts, [20, 30]); |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | |
528 | 528 | $calculatorMock |
529 | 529 | ->method('calculateDiscount') |
530 | - ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) { |
|
530 | + ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) { |
|
531 | 531 | return $discountTransfer->getAmount(); |
532 | 532 | }); |
533 | 533 | |
@@ -591,7 +591,7 @@ discard block |
||
591 | 591 | $calculatorPluginMock = $this->createCalculatorPluginMock(); |
592 | 592 | $calculatorPluginMock |
593 | 593 | ->method('calculateDiscount') |
594 | - ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) { |
|
594 | + ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) { |
|
595 | 595 | return $discountTransfer->getAmount(); |
596 | 596 | }); |
597 | 597 | } |
@@ -958,7 +958,7 @@ |
||
958 | 958 | $discountFacade = $this->createDiscountFacade(); |
959 | 959 | $factory = new DiscountBusinessFactory(); |
960 | 960 | $container = new Container(); |
961 | - $container->set($dependencyType, function () use ($discountRulePluginMock) { |
|
961 | + $container->set($dependencyType, function() use ($discountRulePluginMock) { |
|
962 | 962 | return [ |
963 | 963 | $discountRulePluginMock, |
964 | 964 | ]; |
@@ -60,7 +60,7 @@ |
||
60 | 60 | */ |
61 | 61 | protected function deleteQuoteRequestsByIds(array $quoteRequestIds): void |
62 | 62 | { |
63 | - $this->getTransactionHandler()->handleTransaction(function () use ($quoteRequestIds): void { |
|
63 | + $this->getTransactionHandler()->handleTransaction(function() use ($quoteRequestIds): void { |
|
64 | 64 | $this->executeDeleteQuoteRequestsByIdsTransaction($quoteRequestIds); |
65 | 65 | }); |
66 | 66 | } |