Passed
Pull Request — master (#5)
by Dominique
38:29
created
Category/src/Spryker/Zed/Category/Communication/Form/CategoryType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             'constraints' => [
109 109
                 new NotBlank(),
110 110
                 new Callback([
111
-                    'callback' => function ($key, ExecutionContextInterface $context) use ($categoryQueryContainer) {
111
+                    'callback' => function($key, ExecutionContextInterface $context) use ($categoryQueryContainer) {
112 112
                         $data = $context->getRoot()->getData();
113 113
 
114 114
                         $exists = false;
@@ -217,10 +217,10 @@  discard block
 block discarded – undo
217 217
         ]);
218 218
 
219 219
         $builder->get(static::FIELD_EXTRA_PARENTS)->addModelTransformer(new CallbackTransformer(
220
-            function ($extraParents) {
220
+            function($extraParents) {
221 221
                 return (array)$extraParents;
222 222
             },
223
-            function ($extraParents) {
223
+            function($extraParents) {
224 224
                 return new ArrayObject($extraParents);
225 225
             }
226 226
         ));
Please login to merge, or discard this patch.
Plugin/CmsProductSearchContentWidgetPlugin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
172 172
      */
173 173
     protected function hydrateProductStorageTransfer(array $productData)
174 174
     {
175
-       //implement, this method is overwritten and provided in demoshop
175
+        //implement, this method is overwritten and provided in demoshop
176 176
         return (new StorageProductTransfer())->fromArray($productData, true);
177 177
     }
178 178
 
Please login to merge, or discard this patch.
CmsProductSearchContentWidgetConfigurationProvider.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,6 +43,6 @@
 block discarded – undo
43 43
             You should use `AND` in capital letters, otherwise ElasticSearch will mark it as part of searching text.
44 44
             To use different template, add it as second parameter:
45 45
             {{ product_search('is-active:false AND locale:de_DE', 'default') }}.
46
-EOT;
46
+eot;
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
Zed/ProductValidity/Business/ProductConcrete/ProductConcreteSwitcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
             return;
48 48
         }
49 49
 
50
-        $this->handleDatabaseTransaction(function () {
50
+        $this->handleDatabaseTransaction(function() {
51 51
             $productsBecomingActive = $this->findProductsBecomingActive();
52 52
             $productsBecomingInactive = $this->findProductsBecomingInactive();
53 53
 
Please login to merge, or discard this patch.
Zed/ProductManagement/Communication/Form/ProductConcreteFormEdit.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
 
81 81
         $builder->get(self::BUNDLED_PRODUCTS_TO_BE_REMOVED)
82 82
             ->addModelTransformer(new CallbackTransformer(
83
-                function ($value) {
83
+                function($value) {
84 84
                     if ($value) {
85 85
                         return implode(',', $value);
86 86
                     }
87 87
                 },
88
-                function ($bundledProductsToBeRemoved) {
88
+                function($bundledProductsToBeRemoved) {
89 89
                     if (!$bundledProductsToBeRemoved) {
90 90
                         return [];
91 91
                     }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
                 ],
136 136
                 'constraints' => [
137 137
                     new Callback([
138
-                        'callback' => function ($newFrom, ExecutionContextInterface $context) {
138
+                        'callback' => function($newFrom, ExecutionContextInterface $context) {
139 139
                             $formData = $context->getRoot()->getData();
140 140
 
141 141
                             if (!$newFrom) {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
                 ],
188 188
                 'constraints' => [
189 189
                     new Callback([
190
-                        'callback' => function ($newTo, ExecutionContextInterface $context) {
190
+                        'callback' => function($newTo, ExecutionContextInterface $context) {
191 191
                             $formData = $context->getRoot()->getData();
192 192
 
193 193
                             if (!$newTo) {
@@ -323,14 +323,14 @@  discard block
 block discarded – undo
323 323
         $builder
324 324
             ->get($fieldName)
325 325
             ->addModelTransformer(new CallbackTransformer(
326
-                function ($dateAsString) {
326
+                function($dateAsString) {
327 327
                     if (!$dateAsString) {
328 328
                         return null;
329 329
                     }
330 330
 
331 331
                     return new DateTime($dateAsString);
332 332
                 },
333
-                function ($dateAsObject) use ($timeFormat) {
333
+                function($dateAsObject) use ($timeFormat) {
334 334
                     /** @var \DateTime|null $dateAsObject */
335 335
                     if (!$dateAsObject) {
336 336
                         return null;
Please login to merge, or discard this patch.
Spryker/Zed/Discount/Business/Persistence/DiscountStoreRelationMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      */
62 62
     protected function getIdStores(ArrayObject $storeTransferCollection)
63 63
     {
64
-        return array_map(function (StoreTransfer $store) {
64
+        return array_map(function(StoreTransfer $store) {
65 65
             return $store->getIdStore();
66 66
         }, $storeTransferCollection->getArrayCopy());
67 67
     }
Please login to merge, or discard this patch.
Spryker/Zed/CmsBlockGui/Communication/Controller/ViewBlockController.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.
src/Spryker/Zed/GiftCard/Communication/Plugin/GiftCardOrderSaverPlugin.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function execute(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponse)
30 30
     {
31
-         $this
31
+            $this
32 32
             ->getFacade()
33 33
             ->saveGiftCardPayments($quoteTransfer, $checkoutResponse);
34 34
     }
Please login to merge, or discard this patch.
src/Spryker/Zed/GiftCard/Business/Payment/SalesOrderPaymentSaver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         $giftCardPayments = $this->getGiftCardPayments($quoteTransfer);
51 51
 
52
-        $this->handleDatabaseTransaction(function () use ($giftCardPayments, $checkoutResponse) {
52
+        $this->handleDatabaseTransaction(function() use ($giftCardPayments, $checkoutResponse) {
53 53
             $this->runGiftCardPaymentSavers($giftCardPayments, $checkoutResponse);
54 54
         });
55 55
     }
Please login to merge, or discard this patch.