@@ -372,7 +372,7 @@ |
||
372 | 372 | |
373 | 373 | // Assert |
374 | 374 | $actualCurrencies = array_map( |
375 | - function (MoneyValueTransfer $moneyValueTransfer) { |
|
375 | + function(MoneyValueTransfer $moneyValueTransfer) { |
|
376 | 376 | return $moneyValueTransfer->getCurrency()->getCode(); |
377 | 377 | }, |
378 | 378 | $actualProductGroupOption->getProductOptionValues()[0]->getPrices()->getArrayCopy() |
@@ -60,7 +60,7 @@ |
||
60 | 60 | $localeFacadeMock |
61 | 61 | ->expects($this->any()) |
62 | 62 | ->method('getLocaleCollection') |
63 | - ->willReturn([ new LocaleTransfer()]); |
|
63 | + ->willReturn([new LocaleTransfer()]); |
|
64 | 64 | |
65 | 65 | $productOptionGroupEntity = new SpyProductOptionGroup(); |
66 | 66 |
@@ -348,7 +348,7 @@ |
||
348 | 348 | static::$productPriceCache[$sku] = $this->priceProductFacade->findPriceFor($priceFilterTransfer); |
349 | 349 | } |
350 | 350 | |
351 | - return static::$productPriceCache[$sku]; |
|
351 | + return static::$productPriceCache[$sku]; |
|
352 | 352 | } |
353 | 353 | |
354 | 354 | /** |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | { |
196 | 196 | usort( |
197 | 197 | $options, |
198 | - function (ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
198 | + function(ProductOptionTransfer $productOptionLeft, ProductOptionTransfer $productOptionRight) { |
|
199 | 199 | return ($productOptionLeft->getSku() < $productOptionRight->getSku()) ? -1 : 1; |
200 | 200 | } |
201 | 201 | ); |
@@ -393,7 +393,7 @@ discard block |
||
393 | 393 | */ |
394 | 394 | protected function calculateBundleTotalUnitPrice(array $bundledProducts, $priceMode) |
395 | 395 | { |
396 | - $totalBundleItemAmount = (int)array_reduce($bundledProducts, function ($total, ItemTransfer $itemTransfer) use ($priceMode) { |
|
396 | + $totalBundleItemAmount = (int)array_reduce($bundledProducts, function($total, ItemTransfer $itemTransfer) use ($priceMode) { |
|
397 | 397 | if ($priceMode === $this->priceFacade->getNetPriceModeIdentifier()) { |
398 | 398 | $total += $itemTransfer->getUnitNetPrice(); |
399 | 399 |
@@ -135,7 +135,7 @@ |
||
135 | 135 | return $productLabelDictionaryItemTransfers; |
136 | 136 | } |
137 | 137 | |
138 | - usort($productLabelDictionaryItemTransfers, function ( |
|
138 | + usort($productLabelDictionaryItemTransfers, function( |
|
139 | 139 | ProductLabelDictionaryItemTransfer $productLabelTransferA, |
140 | 140 | ProductLabelDictionaryItemTransfer $productLabelTransferB |
141 | 141 | ) { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
73 | - $result = array_map(function ($attributeValues) { |
|
73 | + $result = array_map(function($attributeValues) { |
|
74 | 74 | $attributeValues = array_values(array_unique($attributeValues)); |
75 | 75 | |
76 | 76 | return $attributeValues; |
@@ -65,7 +65,7 @@ |
||
65 | 65 | $otherImageSets[] = $imageSetTransfer; |
66 | 66 | } |
67 | 67 | |
68 | - usort($otherImageSets, function (ProductImageSetStorageTransfer $a, ProductImageSetStorageTransfer $b) { |
|
68 | + usort($otherImageSets, function(ProductImageSetStorageTransfer $a, ProductImageSetStorageTransfer $b) { |
|
69 | 69 | return strcmp($a->getName(), $b->getName()); |
70 | 70 | }); |
71 | 71 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $builder->addEventListener( |
47 | 47 | FormEvents::PRE_SET_DATA, |
48 | - function (FormEvent $event) { |
|
48 | + function(FormEvent $event) { |
|
49 | 49 | $this->setInitialData($event); |
50 | 50 | } |
51 | 51 | ); |
@@ -287,7 +287,7 @@ |
||
287 | 287 | */ |
288 | 288 | protected function getStoreNames(ArrayObject $stores) |
289 | 289 | { |
290 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
290 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
291 | 291 | return $storeTransfer->getName(); |
292 | 292 | }, $stores->getArrayCopy()); |
293 | 293 | } |
@@ -78,7 +78,7 @@ |
||
78 | 78 | */ |
79 | 79 | protected function getIdStores(ArrayObject $storeTransferCollection) |
80 | 80 | { |
81 | - return array_map(function (StoreTransfer $storeTransfer) { |
|
81 | + return array_map(function(StoreTransfer $storeTransfer) { |
|
82 | 82 | return $storeTransfer->getIdStore(); |
83 | 83 | }, $storeTransferCollection->getArrayCopy()); |
84 | 84 | } |