Failed Conditions
Branch master (6be865)
by Anton
53:12
created
tests/SprykerTest/Zed/Discount/Business/Calculator/CalculatorTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -448,7 +448,7 @@  discard block
 block discarded – undo
448 448
         $collectedDiscounts = $calculator->calculate($discounts, $quoteTransfer);
449 449
 
450 450
         $this->assertCount(2, $collectedDiscounts);
451
-        $discountAmounts = array_map(function (CollectedDiscountTransfer $collectedDiscountTransfer) {
451
+        $discountAmounts = array_map(function(CollectedDiscountTransfer $collectedDiscountTransfer) {
452 452
             return $collectedDiscountTransfer->getDiscount()->getAmount();
453 453
         }, $collectedDiscounts);
454 454
         $this->assertEqualsCanonicalizing($discountAmounts, [20, 30]);
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 
528 528
         $calculatorMock
529 529
             ->method('calculateDiscount')
530
-            ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) {
530
+            ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) {
531 531
                 return $discountTransfer->getAmount();
532 532
             });
533 533
 
@@ -591,7 +591,7 @@  discard block
 block discarded – undo
591 591
             $calculatorPluginMock = $this->createCalculatorPluginMock();
592 592
             $calculatorPluginMock
593 593
                 ->method('calculateDiscount')
594
-                ->willReturnCallback(function ($discountableItems, DiscountTransfer $discountTransfer) {
594
+                ->willReturnCallback(function($discountableItems, DiscountTransfer $discountTransfer) {
595 595
                     return $discountTransfer->getAmount();
596 596
                 });
597 597
         }
Please login to merge, or discard this patch.
Discount/tests/SprykerTest/Zed/Discount/Business/DiscountFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -958,7 +958,7 @@
 block discarded – undo
958 958
         $discountFacade = $this->createDiscountFacade();
959 959
         $factory = new DiscountBusinessFactory();
960 960
         $container = new Container();
961
-        $container->set($dependencyType, function () use ($discountRulePluginMock) {
961
+        $container->set($dependencyType, function() use ($discountRulePluginMock) {
962 962
             return [
963 963
                 $discountRulePluginMock,
964 964
             ];
Please login to merge, or discard this patch.
src/Spryker/Zed/QuoteRequest/Business/Cleaner/QuoteRequestCleaner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      */
61 61
     protected function deleteQuoteRequestsByIds(array $quoteRequestIds): void
62 62
     {
63
-        $this->getTransactionHandler()->handleTransaction(function () use ($quoteRequestIds): void {
63
+        $this->getTransactionHandler()->handleTransaction(function() use ($quoteRequestIds): void {
64 64
             $this->executeDeleteQuoteRequestsByIdsTransaction($quoteRequestIds);
65 65
         });
66 66
     }
Please login to merge, or discard this patch.
Spryker/Zed/SetupFrontend/Business/Model/Installer/DependencyInstaller.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
 
48 48
             $process = new Process(explode(' ', $this->installCommand), $path);
49 49
             $process->setTimeout(null);
50
-            $process->run(function ($type, $buffer) use ($logger) {
50
+            $process->run(function($type, $buffer) use ($logger) {
51 51
                 $logger->info($buffer);
52 52
             });
53 53
 
Please login to merge, or discard this patch.
src/Spryker/Zed/SetupFrontend/Business/Model/Installer/ProjectInstaller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
     public function install(LoggerInterface $logger)
34 34
     {
35 35
         $process = new Process(explode(' ', $this->installCommand), APPLICATION_ROOT_DIR, null, null, null);
36
-        $process->run(function ($type, $buffer) use ($logger) {
36
+        $process->run(function($type, $buffer) use ($logger) {
37 37
             $logger->info($buffer);
38 38
         });
39 39
 
Please login to merge, or discard this patch.
Setup/src/Spryker/Zed/Setup/Communication/Console/Npm/RunnerConsole.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
         $this->info('Run command: ' . $command);
124 124
         $process = new Process(explode(' ', $command), APPLICATION_ROOT_DIR);
125 125
         $process->setTimeout(null);
126
-        $process->run(function ($type, $buffer) {
126
+        $process->run(function($type, $buffer) {
127 127
             echo $buffer;
128 128
         });
129 129
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
 
94 94
 Example:
95 95
  - code:npm --build-all  will build the client resources for the core, the project Zed and the project Yves code
96
-EOM;
96
+eom;
97 97
         $this->setHelp($help);
98 98
 
99 99
         $this->addOption(
Please login to merge, or discard this patch.
Messenger/Communication/Plugin/Application/MessengerApplicationPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
      */
34 34
     public function provide(ContainerInterface $container): ContainerInterface
35 35
     {
36
-        $container->set(static::SERVICE_MESSENGER, function () {
36
+        $container->set(static::SERVICE_MESSENGER, function() {
37 37
             return $this->getFacade();
38 38
         });
39 39
 
Please login to merge, or discard this patch.
Translator/src/Spryker/Yves/Translator/TranslatorDependencyProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      */
41 41
     protected function addGlossaryStorageClient(Container $container): Container
42 42
     {
43
-        $container->set(static::CLIENT_GLOSSARY_STORAGE, function (Container $container) {
43
+        $container->set(static::CLIENT_GLOSSARY_STORAGE, function(Container $container) {
44 44
             return new TranslatorToGlossaryStorageClientBridge($container->getLocator()->glossaryStorage()->client());
45 45
         });
46 46
 
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function addLocaleClient(Container $container): Container
56 56
     {
57
-        $container->set(static::CLIENT_LOCALE, function (Container $container) {
57
+        $container->set(static::CLIENT_LOCALE, function(Container $container) {
58 58
             return new TranslatorToLocaleClientBridge($container->getLocator()->locale()->client());
59 59
         });
60 60
 
Please login to merge, or discard this patch.
Spryker/Yves/Translator/Plugin/Application/TranslatorApplicationPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
     public function provide(ContainerInterface $container): ContainerInterface
38 38
     {
39 39
         $container->set(static::BC_FEATURE_FLAG_TWIG_TRANSLATOR, false);
40
-        $container->set(static::SERVICE_TRANSLATOR, function () {
40
+        $container->set(static::SERVICE_TRANSLATOR, function() {
41 41
             return $this->getFactory()->createTranslator();
42 42
         });
43 43
 
Please login to merge, or discard this patch.