Failed Conditions
Branch master (6be865)
by Anton
53:12
created
Cms/src/Spryker/Zed/Cms/Business/Mapping/GlossaryKeyMappingManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
         $uniquePlaceholder = $placeholder . '-' . $pageTransfer->getIdCmsPage();
241 241
         $keyName = $this->generateGlossaryKeyName($template->getTemplateName(), $uniquePlaceholder, $autoGlossaryKeyIncrement);
242 242
 
243
-        return $this->getTransactionHandler()->handleTransaction(function () use ($pageTransfer, $placeholder, $keyName, $value, $localeTransfer): PageKeyMappingTransfer {
243
+        return $this->getTransactionHandler()->handleTransaction(function() use ($pageTransfer, $placeholder, $keyName, $value, $localeTransfer): PageKeyMappingTransfer {
244 244
             return $this->executeAddPlaceholderTextTransaction($pageTransfer, $placeholder, $keyName, $value, $localeTransfer);
245 245
         });
246 246
     }
Please login to merge, or discard this patch.
Bundles/Cms/src/Spryker/Zed/Cms/Business/Page/PageManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -328,7 +328,7 @@
 block discarded – undo
328 328
      */
329 329
     public function savePageUrlAndTouch(PageTransfer $pageTransfer): UrlTransfer
330 330
     {
331
-        return $this->getTransactionHandler()->handleTransaction(function (PageTransfer $pageTransfer): UrlTransfer {
331
+        return $this->getTransactionHandler()->handleTransaction(function(PageTransfer $pageTransfer): UrlTransfer {
332 332
             return $this->executeSavePageUrlAndTouchTransaction($pageTransfer);
333 333
         });
334 334
     }
Please login to merge, or discard this patch.
Bundles/ProductImage/src/Spryker/Zed/ProductImage/Business/Model/Writer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,7 @@
 block discarded – undo
241 241
      */
242 242
     public function saveProductImageSet(ProductImageSetTransfer $productImageSetTransfer)
243 243
     {
244
-        return $this->getTransactionHandler()->handleTransaction(function () use ($productImageSetTransfer): ProductImageSetTransfer {
244
+        return $this->getTransactionHandler()->handleTransaction(function() use ($productImageSetTransfer): ProductImageSetTransfer {
245 245
             return $this->executeSaveProductImageSetTransaction($productImageSetTransfer);
246 246
         });
247 247
     }
Please login to merge, or discard this patch.
src/Spryker/Zed/CustomerGroup/Business/Model/CustomerGroup.php 1 patch
Spacing   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     public function add(CustomerGroupTransfer $customerGroupTransfer)
82 82
     {
83
-        return $this->getTransactionHandler()->handleTransaction(function () use ($customerGroupTransfer): CustomerGroupTransfer {
83
+        return $this->getTransactionHandler()->handleTransaction(function() use ($customerGroupTransfer): CustomerGroupTransfer {
84 84
             return $this->executeAddTransaction($customerGroupTransfer);
85 85
         });
86 86
     }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function update(CustomerGroupTransfer $customerGroupTransfer)
94 94
     {
95
-        $this->getTransactionHandler()->handleTransaction(function () use ($customerGroupTransfer): void {
95
+        $this->getTransactionHandler()->handleTransaction(function() use ($customerGroupTransfer): void {
96 96
             $this->executeUpdateTransaction($customerGroupTransfer);
97 97
         });
98 98
     }
@@ -142,8 +142,7 @@  discard block
 block discarded – undo
142 142
     protected function saveCustomers(CustomerGroupTransfer $customerGroupTransfer, SpyCustomerGroup $customerGroupEntity)
143 143
     {
144 144
         $idsCustomerToAssign = $customerGroupTransfer->getCustomerAssignment() ?
145
-            $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() :
146
-            [];
145
+            $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToAssign() : [];
147 146
 
148 147
         foreach ($idsCustomerToAssign as $idCustomerToAssign) {
149 148
             $customerGroupToCustomerEntity = new SpyCustomerGroupToCustomer();
@@ -202,8 +201,7 @@  discard block
 block discarded – undo
202 201
             ->requireIdCustomerGroup();
203 202
 
204 203
         $idsCustomerToDeAssign = $customerGroupTransfer->getCustomerAssignment() ?
205
-            $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() :
206
-            [];
204
+            $customerGroupTransfer->getCustomerAssignment()->getIdsCustomerToDeAssign() : [];
207 205
 
208 206
         foreach ($idsCustomerToDeAssign as $idCustomer) {
209 207
             $customerEntity = $this->queryContainer
Please login to merge, or discard this patch.
Glossary/src/Spryker/Zed/Glossary/Business/Internal/GlossaryInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
      */
83 83
     protected function installKeysAndTranslations(array $translations)
84 84
     {
85
-        return $this->getTransactionHandler()->handleTransaction(function () use ($translations): array {
85
+        return $this->getTransactionHandler()->handleTransaction(function() use ($translations): array {
86 86
             return $this->executeInstallKeysAndTranslationsTransaction($translations);
87 87
         });
88 88
     }
Please login to merge, or discard this patch.
Client/OrderCustomReference/OrderCustomReferenceDependencyProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     protected function addPersistentCartClient(Container $container): Container
40 40
     {
41
-        $container->set(static::CLIENT_PERSISTENT_CART, function (Container $container) {
41
+        $container->set(static::CLIENT_PERSISTENT_CART, function(Container $container) {
42 42
             return new OrderCustomReferenceToPersistentCartClientBridge($container->getLocator()->persistentCart()->client());
43 43
         });
44 44
 
Please login to merge, or discard this patch.
Transfer/tests/SprykerTest/Zed/Transfer/_support/TransferBusinessTester.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     {
52 52
         $transferDirectory = $this->getVirtualDirectory(['transfer' => ['foo.transfer.xml' => 'content']]);
53 53
 
54
-        $this->mockConfigMethod('getSourceDirectories', function () use ($transferDirectory) {
54
+        $this->mockConfigMethod('getSourceDirectories', function() use ($transferDirectory) {
55 55
             return [$transferDirectory . '/transfer'];
56 56
         });
57 57
 
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
     {
69 69
         $entityTransferDirectory = $this->getVirtualDirectory(['entity-transfer' => ['foo.schema.xml' => 'content']]);
70 70
 
71
-        $this->mockConfigMethod('getEntitiesSourceDirectories', function () use ($entityTransferDirectory) {
71
+        $this->mockConfigMethod('getEntitiesSourceDirectories', function() use ($entityTransferDirectory) {
72 72
             return [$entityTransferDirectory . '/entity-transfer'];
73 73
         });
74 74
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     {
86 86
         $dataBuilderDirectory = $this->getVirtualDirectory(['data-builder' => ['foo.databuilder.xml' => 'content']]);
87 87
 
88
-        $this->mockConfigMethod('getDataBuildersSourceDirectories', function () use ($dataBuilderDirectory) {
88
+        $this->mockConfigMethod('getDataBuildersSourceDirectories', function() use ($dataBuilderDirectory) {
89 89
             return [$dataBuilderDirectory . '/data-builder'];
90 90
         });
91 91
 
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     protected function getTransferBusinessFactory(): TransferBusinessFactory
229 229
     {
230
-        $this->mockConfigMethod('getClassTargetDirectory', function () {
230
+        $this->mockConfigMethod('getClassTargetDirectory', function() {
231 231
             return $this->getTransferDestinationUrl();
232 232
         });
233 233
 
Please login to merge, or discard this patch.
Bundles/Oms/tests/SprykerTest/Zed/Oms/Business/OmsFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -275,7 +275,7 @@
 block discarded – undo
275 275
         $container = new Container();
276 276
         $container = $omsDependencyProvider->provideBusinessLayerDependencies($container);
277 277
         $container = $omsDependencyProvider->providePersistenceLayerDependencies($container);
278
-        $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function (CommandCollectionInterface $commandCollection) {
278
+        $container->extend(OmsDependencyProvider::COMMAND_PLUGINS, function(CommandCollectionInterface $commandCollection) {
279 279
             return $commandCollection->add(new TestAuthPlugin(), 'TestPayment/Authorize');
280 280
         });
281 281
 
Please login to merge, or discard this patch.
Spryker/Zed/MerchantStockGui/Communication/Form/MerchantStockFormType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
     {
47 47
         $builder->add(static::FIELD_STOCKS, Select2ComboBoxType::class, [
48 48
             'choices' => $options[static::FIELD_STOCKS],
49
-            'choice_value' => function (StockTransfer $stockTransfer) {
49
+            'choice_value' => function(StockTransfer $stockTransfer) {
50 50
                 return $stockTransfer->getIdStock();
51 51
             },
52 52
             'choice_label' => StockTransfer::NAME,
Please login to merge, or discard this patch.