Passed
Pull Request — master (#5)
by Dominique
38:29
created
tests/SprykerTest/Zed/ProductOption/Business/ProductOptionFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
Zed/ProductOption/Business/OptionGroup/ProductOptionGroupReaderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Zed/ProductBundle/Business/ProductBundle/Cart/ProductBundleCartExpander.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -348,7 +348,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Spryker/Client/ProductLabelStorage/Storage/LabelDictionaryReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
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
         ) {
Please login to merge, or discard this patch.
Spryker/Zed/ProductPageSearch/Business/Attribute/ProductPageAttribute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Spryker/Client/ProductSetStorage/Mapper/ProductSetStorageMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Spryker/Zed/Store/Communication/Form/Type/StoreRelationToggleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
Spryker/Zed/ProductManagement/Communication/Controller/ViewController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Business/Product/StoreRelation/ProductAbstractStoreRelationReader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.