Passed
Pull Request — master (#5)
by Dominique
38:29
created
Business/CompanyBusinessUnitCreator/CompanyBusinessUnitCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
             ->setIsSuccessful(true)
65 65
             ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_CREATE_SUCCESS));
66 66
 
67
-        return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) {
67
+        return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) {
68 68
             return $this->executeCreateTransaction($companyBusinessUnitResponseTransfer);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
Business/Collector/SchemaFinder/RestRequestValidatorSchemaFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
     protected function excludeStoreModules(string $pathPattern, array $currentLevelPaths): array
146 146
     {
147 147
         if ($this->isProjectLevelPath($pathPattern)) {
148
-            $currentLevelPaths = array_filter($currentLevelPaths, function ($pathItem) {
148
+            $currentLevelPaths = array_filter($currentLevelPaths, function($pathItem) {
149 149
                 return !preg_match(
150 150
                     $this->addStoreCodesToPath($this->config->getStoreModulesPattern()),
151 151
                     $pathItem
Please login to merge, or discard this patch.
ProductViewVariantRestrictionExpander.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
      */
141 141
     protected function getRestrictedProductConcreteIds(array $productConcreteIds): array
142 142
     {
143
-        return array_reduce($productConcreteIds, function (array $restrictedProductConcreteIds, int $productConcreteId) {
143
+        return array_reduce($productConcreteIds, function(array $restrictedProductConcreteIds, int $productConcreteId) {
144 144
             if ($this->productConcreteRestrictionReader->isProductConcreteRestricted($productConcreteId)) {
145 145
                 $restrictedProductConcreteIds[] = $productConcreteId;
146 146
             }
Please login to merge, or discard this patch.
Zed/ProductList/Business/RestrictedItemsFilter/RestrictedItemsFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             return;
77 77
         }
78 78
 
79
-        $quoteSkus = array_map(function (ItemTransfer $itemTransfer) {
79
+        $quoteSkus = array_map(function(ItemTransfer $itemTransfer) {
80 80
             return $itemTransfer->getSku();
81 81
         }, $quoteTransfer->getItems()->getArrayCopy());
82 82
 
Please login to merge, or discard this patch.
ProductListRestrictionValidator/ProductListRestrictionValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 
53 53
         $customerBlacklistIds = $customerProductListCollectionTransfer->getBlacklistIds() ?: [];
54 54
         $customerWhitelistIds = $customerProductListCollectionTransfer->getWhitelistIds() ?: [];
55
-        $cartChangeSkus = array_map(function (ItemTransfer $itemTransfer) {
55
+        $cartChangeSkus = array_map(function(ItemTransfer $itemTransfer) {
56 56
             return $itemTransfer->getSku();
57 57
         }, $cartChangeTransfer->getItems()->getArrayCopy());
58 58
 
Please login to merge, or discard this patch.
Business/DecisionRule/CustomerGroupDecisionRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
         $discountFacadeMock
85 85
             ->expects($this->exactly(2))
86 86
             ->method('queryStringCompare')
87
-            ->willReturnCallback(function (ClauseTransfer $clauseTransfer, string $customerGroupName) {
87
+            ->willReturnCallback(function(ClauseTransfer $clauseTransfer, string $customerGroupName) {
88 88
                 return $clauseTransfer->getValue() === strtolower($customerGroupName);
89 89
             });
90 90
 
Please login to merge, or discard this patch.
PriceProductVolumeGui/Communication/Form/PriceVolumeCollectionFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         $resolver->setRequired(PriceVolumeCollectionDataProvider::OPTION_FRACTION_DIGITS);
60 60
 
61 61
         $resolver->setDefaults([
62
-            'validation_groups' => function () {
62
+            'validation_groups' => function() {
63 63
                 return [Constraint::DEFAULT_GROUP, static::VALIDATION_VOLUMES_GROUP];
64 64
             },
65 65
         ]);
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $savedPriceProductVolumeItemTransfers = [];
159 159
 
160
-        return function (PriceProductVolumeItemTransfer $priceProductVolumeItemTransfer, ExecutionContextInterface $context) use (&$savedPriceProductVolumeItemTransfers) {
160
+        return function(PriceProductVolumeItemTransfer $priceProductVolumeItemTransfer, ExecutionContextInterface $context) use (&$savedPriceProductVolumeItemTransfers) {
161 161
             if (empty(array_filter($priceProductVolumeItemTransfer->toArray()))) {
162 162
                 return;
163 163
             }
Please login to merge, or discard this patch.
Zed/PriceProductVolumeGui/Communication/Form/PriceVolumeFormType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -134,10 +134,10 @@
 block discarded – undo
134 134
     protected function getPriceModelTransformer(): CallbackTransformer
135 135
     {
136 136
         return new CallbackTransformer(
137
-            function ($priceValue) {
137
+            function($priceValue) {
138 138
                 return $priceValue;
139 139
             },
140
-            function ($priceValue) {
140
+            function($priceValue) {
141 141
                 return $priceValue !== null ? (int)$priceValue : null;
142 142
             }
143 143
         );
Please login to merge, or discard this patch.
src/Spryker/Zed/ProductManagement/Communication/Form/ProductFormEdit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $validationGroups = parent::getValidationGroups();
32 32
 
33
-        return array_filter($validationGroups, function ($item) {
33
+        return array_filter($validationGroups, function($item) {
34 34
             return $item !== ImageSetForm::VALIDATION_GROUP_IMAGE_COLLECTION;
35 35
         });
36 36
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                         'groups' => [self::VALIDATION_GROUP_UNIQUE_SKU],
58 58
                     ]),
59 59
                     new Callback([
60
-                        'callback' => function ($sku, ExecutionContextInterface $context) {
60
+                        'callback' => function($sku, ExecutionContextInterface $context) {
61 61
                             $form = $context->getRoot();
62 62
                             $idProductAbstract = $form->get(ProductFormAdd::FIELD_ID_PRODUCT_ABSTRACT)->getData();
63 63
 
Please login to merge, or discard this patch.