Failed Conditions
Push — master ( 494e02...0ec8a9 )
by mark
68:47 queued 24:21
created
Zed/CustomerAccess/Business/CustomerAccess/CustomerAccessUpdater.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function updateUnauthenticatedCustomerAccess(CustomerAccessTransfer $customerAccessTransfer): CustomerAccessTransfer
37 37
     {
38
-        return $this->getTransactionHandler()->handleTransaction(function () use ($customerAccessTransfer) {
38
+        return $this->getTransactionHandler()->handleTransaction(function() use ($customerAccessTransfer) {
39 39
             $this->customerAccessEntityManager->setAllContentTypesToAccessible();
40 40
 
41 41
             return $this->customerAccessEntityManager->setContentTypesToInaccessible($customerAccessTransfer);
Please login to merge, or discard this patch.
SprykerTest/Zed/ProductAttribute/Business/ProductAttributeFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -494,7 +494,7 @@
 block discarded – undo
494 494
             $glossaryKeyBuilderMock,
495 495
         ])->setMethods(['getLocaleByName'])->getMock();
496 496
 
497
-        $attributeTranslatorMock->method('getLocaleByName')->willReturnCallback(function ($localeName) {
497
+        $attributeTranslatorMock->method('getLocaleByName')->willReturnCallback(function($localeName) {
498 498
             return $this->tester->getLocale($localeName);
499 499
         });
500 500
 
Please login to merge, or discard this patch.
Communication/Form/Product/Concrete/ProductConcreteSuperAttributeForm.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
             Select2ComboBoxType::class,
60 60
             [
61 61
                 'choices' => $this->extractAttributeValuesFromTransfer($options[static::OPTION_PRODUCT_MANAGEMENT_ATTRIBUTE_TRANSFER]),
62
-                'choice_label' => function ($choiceValue) {
62
+                'choice_label' => function($choiceValue) {
63 63
                     return $choiceValue;
64 64
                 },
65 65
                 'label' => false,
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function extractAttributeValuesFromTransfer(ProductManagementAttributeTransfer $productManagementAttributeTransfer)
120 120
     {
121
-        return array_map(function (ProductManagementAttributeValueTransfer $productManagementAttributeValueTransfer) {
121
+        return array_map(function(ProductManagementAttributeValueTransfer $productManagementAttributeValueTransfer) {
122 122
             return $productManagementAttributeValueTransfer->getValue();
123 123
         }, $productManagementAttributeTransfer->getValues()->getArrayCopy());
124 124
     }
Please login to merge, or discard this patch.
Form/Validator/Constraints/ProductAttributeUniqueCombinationValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     protected function getAttributeCombinationsFromConcreteProducts(array $concreteProducts)
58 58
     {
59
-        return array_map(function (ProductConcreteTransfer $productConcreteTransfer) {
59
+        return array_map(function(ProductConcreteTransfer $productConcreteTransfer) {
60 60
             return $productConcreteTransfer->getAttributes();
61 61
         }, $concreteProducts);
62 62
     }
Please login to merge, or discard this patch.
Zed/ProductManagement/Communication/Controller/AddVariantController.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
                 ->saveProduct($productAbstractTransfer, [$productConcreteTransfer]);
66 66
 
67 67
             $type = $productConcreteTransfer->getProductBundle() === null ?
68
-                ProductManagementConfig::PRODUCT_TYPE_REGULAR :
69
-                ProductManagementConfig::PRODUCT_TYPE_BUNDLE;
68
+                ProductManagementConfig::PRODUCT_TYPE_REGULAR : ProductManagementConfig::PRODUCT_TYPE_BUNDLE;
70 69
 
71 70
             $this->getFactory()
72 71
                 ->getProductFacade()
Please login to merge, or discard this patch.
Client/ShoppingListProductOptionConnector/Mapper/QuoteItemToItemMapper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             return false;
40 40
         }
41 41
 
42
-        $mappingFunction = function (ProductOptionTransfer $productOptionTransfer) {
42
+        $mappingFunction = function(ProductOptionTransfer $productOptionTransfer) {
43 43
             return $productOptionTransfer->getIdProductOptionValue();
44 44
         };
45 45
 
Please login to merge, or discard this patch.
Business/CompanyBusinessUnitWriter/CompanyBusinessUnitWriter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             ->setIsSuccessful(true)
73 73
             ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_UPDATE_SUCCESS));
74 74
 
75
-        return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) {
75
+        return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) {
76 76
             return $this->executeUpdateTransaction($companyBusinessUnitResponseTransfer);
77 77
         });
78 78
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             ->setIsSuccessful(true)
93 93
             ->addMessage((new ResponseMessageTransfer())->setText(static::MESSAGE_BUSINESS_UNIT_DELETE_SUCCESS));
94 94
 
95
-        return $this->getTransactionHandler()->handleTransaction(function () use ($companyBusinessUnitResponseTransfer) {
95
+        return $this->getTransactionHandler()->handleTransaction(function() use ($companyBusinessUnitResponseTransfer) {
96 96
             return $this->executeDeleteTransaction($companyBusinessUnitResponseTransfer);
97 97
         });
98 98
     }
Please login to merge, or discard this patch.
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.
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.