Failed Conditions
Push — master ( 494e02...0ec8a9 )
by mark
68:47 queued 24:21
created
Zed/ProductManagement/Communication/Form/Product/AttributeAbstractForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         $resolver->setDefined(static::OPTION_LOCALE_TRANSFER);
84 84
 
85 85
         $resolver->setDefaults([
86
-            'validation_groups' => function (FormInterface $form) {
86
+            'validation_groups' => function(FormInterface $form) {
87 87
                 $groups = [ProductFormAdd::VALIDATION_GROUP_ATTRIBUTE_ABSTRACT];
88 88
                 $submittedData = $form->getData();
89 89
 
Please login to merge, or discard this patch.
Spryker/Zed/ProductManagement/Communication/Form/Product/ImageSetForm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $resolver->setDefaults([
54 54
             'constraints' => new Valid(),
55 55
             'required' => false,
56
-            'validation_groups' => function (FormInterface $form) use ($validationGroups) {
56
+            'validation_groups' => function(FormInterface $form) use ($validationGroups) {
57 57
                 return $validationGroups;
58 58
             },
59 59
             'compound' => true,
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
                 'allow_delete' => true,
187 187
                 'prototype' => true,
188 188
                 'constraints' => [new Callback([
189
-                    'callback' => function ($images, ExecutionContextInterface $context) {
189
+                    'callback' => function($images, ExecutionContextInterface $context) {
190 190
                         $selectedAttributes = [];
191 191
                         foreach ($images as $valueSet) {
192 192
                             if (!empty($valueSet['value'])) {
Please login to merge, or discard this patch.
Zed/CmsGui/Communication/Form/Glossary/CmsGlossaryAttributesFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     public function configureOptions(OptionsResolver $resolver)
51 51
     {
52 52
         $resolver->setDefaults([
53
-            'validation_groups' => function (FormInterface $form) {
53
+            'validation_groups' => function(FormInterface $form) {
54 54
                 $defaultData = $form->getConfig()->getData();
55 55
 
56 56
                 if (!isset($defaultData[static::FIELD_FK_GLOSSARY_MAPPING])) {
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
         ];
192 192
 
193 193
         $placeholderConstraints[] = new Callback([
194
-            'callback' => function ($placeholder, ExecutionContextInterface $context) {
194
+            'callback' => function($placeholder, ExecutionContextInterface $context) {
195 195
                 $formData = $context->getRoot()->getViewData();
196 196
                 if ($this->getFactory()->getCmsFacade()->hasPagePlaceholderMapping($formData[static::FIELD_FK_PAGE], $placeholder)) {
197 197
                     $context->addViolation('Placeholder has already mapped.');
Please login to merge, or discard this patch.
src/Spryker/Zed/CustomerGroup/Communication/Form/CustomerGroupForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
         }
126 126
 
127 127
         $constraints[] = new Callback([
128
-            'callback' => function ($name, ExecutionContextInterface $context) use ($customerGroupQuery) {
128
+            'callback' => function($name, ExecutionContextInterface $context) use ($customerGroupQuery) {
129 129
                 if ($customerGroupQuery->findByName($name)->count() > 0) {
130 130
                     $context->addViolation('Name is already used');
131 131
                 }
Please login to merge, or discard this patch.
Bundles/DummyPayment/src/Spryker/Yves/DummyPayment/Form/AbstractSubForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
     protected function createBirthdayConstraint()
74 74
     {
75 75
         return new Callback([
76
-            'callback' => function ($date, ExecutionContextInterface $context) {
76
+            'callback' => function($date, ExecutionContextInterface $context) {
77 77
                 if (strtotime($date) > strtotime(self::MIN_BIRTHDAY_DATE_STRING)) {
78 78
                     $context->addViolation('checkout.step.payment.must_be_older_than_18_years');
79 79
                 }
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.
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.