Failed Conditions
Branch master (6be865)
by Anton
53:12
created
Container/tests/SprykerTest/Service/Container/ContainerAliasTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
      */
147 147
     protected function createServiceClosure(string $returnValue = self::SERVICE): Closure
148 148
     {
149
-        $service = function () use ($returnValue) {
149
+        $service = function() use ($returnValue) {
150 150
             return $returnValue;
151 151
         };
152 152
 
Please login to merge, or discard this patch.
Bundles/Container/src/Spryker/Service/Container/Container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                 ])
309 309
                 ->setAllowedTypes('isGlobal', ['bool'])
310 310
                 ->setAllowedTypes('alias', ['array', 'string'])
311
-                ->setNormalizer('alias', function (Options $options, $value) {
311
+                ->setNormalizer('alias', function(Options $options, $value) {
312 312
                     return (array)$value;
313 313
                 });
314 314
         }
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
 
410 410
         $factory = $this->services[$id];
411 411
 
412
-        $extended = function ($container) use ($service, $factory) {
412
+        $extended = function($container) use ($service, $factory) {
413 413
             return $service($factory($container), $container);
414 414
         };
415 415
 
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 
451 451
         $factory = static::$globalServices[$id];
452 452
 
453
-        $extended = function ($container) use ($service, $factory) {
453
+        $extended = function($container) use ($service, $factory) {
454 454
             return $service($factory($container), $container);
455 455
         };
456 456
 
Please login to merge, or discard this patch.
src/Spryker/Zed/ContentGui/Communication/Form/LocalizedContentForm.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         $resolver->setDefaults([
39 39
             'required' => true,
40
-            'validation_groups' => function (FormInterface $form) {
40
+            'validation_groups' => function(FormInterface $form) {
41 41
                 $submittedData = $form->getData();
42 42
 
43 43
                 if ($submittedData->getFkLocale() !== null) {
@@ -109,13 +109,13 @@  discard block
 block discarded – undo
109 109
 
110 110
         $builder->get(static::FIELD_PARAMETERS)
111 111
             ->addModelTransformer(new CallbackTransformer(
112
-                function (?string $params = null) use ($contentPlugin) {
112
+                function(?string $params = null) use ($contentPlugin) {
113 113
                     $params = $this->getFactory()->getUtilEncoding()->decodeJson((string)$params, true);
114 114
 
115 115
                     return $contentPlugin->getTransferObject($params);
116 116
                 },
117
-                function (TransferInterface $transfer) {
118
-                    $arrayFilter = function ($input) use (&$arrayFilter) {
117
+                function(TransferInterface $transfer) {
118
+                    $arrayFilter = function($input) use (&$arrayFilter) {
119 119
                         foreach ($input as &$value) {
120 120
                             if (is_array($value)) {
121 121
                                 $value = $arrayFilter($value);
Please login to merge, or discard this patch.
tests/SprykerTest/Zed/ContentStorage/Business/ContentStorageFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         parent::setUp();
42 42
 
43
-        $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) {
43
+        $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) {
44 44
             return [
45 45
                 $container->getLocator()->rabbitMq()->client()->createQueueAdapter(),
46 46
             ];
Please login to merge, or discard this patch.
Spryker/Zed/ContentStorage/Business/ContentStorage/ContentStorageWriter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $contentTransfers = $this->contentStorageRepository->findContentByIds($contentIds);
72 72
         $contentStorageTransfers = $this->contentStorageRepository->findContentStorageByContentIds($contentIds);
73 73
 
74
-        $this->getTransactionHandler()->handleTransaction(function () use ($contentTransfers, $contentStorageTransfers) {
74
+        $this->getTransactionHandler()->handleTransaction(function() use ($contentTransfers, $contentStorageTransfers) {
75 75
             return $this->executePublishTransaction($contentTransfers, $contentStorageTransfers);
76 76
         });
77 77
     }
Please login to merge, or discard this patch.
Bundles/Storage/tests/SprykerTest/Client/Storage/Redis/ServiceTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
     {
320 320
         StorageClient::$cachedKeys = [];
321 321
 
322
-        $getMultiFunctionStub = function ($keys) {
322
+        $getMultiFunctionStub = function($keys) {
323 323
             $result = [];
324 324
             foreach ($keys as $key) {
325 325
                 $result['kv:' . $key] = '_' . strtoupper($key);
Please login to merge, or discard this patch.
Communication/Plugin/ServiceProvider/TwigCurrencyServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function register(Application $app)
37 37
     {
38 38
         $app['twig'] = $app->share(
39
-            $app->extend('twig', function (Environment $twig) {
39
+            $app->extend('twig', function(Environment $twig) {
40 40
                 $twig->addFunction($this->getCurrencySymbolFunction());
41 41
 
42 42
                 return $twig;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      */
65 65
     protected function getCurrencySymbolFunction()
66 66
     {
67
-        return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function ($isoCode = null) {
67
+        return new TwigFunction(static::CURRENCY_SYMBOL_FUNCTION_NAME, function($isoCode = null) {
68 68
             return $this->getCurrencySymbol($isoCode);
69 69
         });
70 70
     }
Please login to merge, or discard this patch.
Twig/src/Spryker/Yves/Twig/Plugin/ServiceProvider/TwigServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function register(Application $app)
31 31
     {
32
-        $app[static::TWIG_LOADER_YVES] = function () {
32
+        $app[static::TWIG_LOADER_YVES] = function() {
33 33
             return $this->getFactory()->createFilesystemLoader();
34 34
         };
35 35
 
@@ -37,8 +37,8 @@  discard block
 block discarded – undo
37 37
             $app['twig'] = $app->share(
38 38
                 $app->extend(
39 39
                     'twig',
40
-                    function (Environment $twig) use ($app) {
41
-                        $callback = function () use ($app) {
40
+                    function(Environment $twig) use ($app) {
41
+                        $callback = function() use ($app) {
42 42
                             $fragmentHandler = new FragmentHandler($app['request_stack'], $app['fragment.renderers']);
43 43
 
44 44
                             return new HttpKernelRuntime($fragmentHandler);
Please login to merge, or discard this patch.
ProductReview/Plugin/Provider/ProductAbstractReviewTwigServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         $twigExtension = $this->getFactory()->createProductAbstractReviewTwigExtension();
28 28
 
29 29
         $app['twig'] = $app->share(
30
-            $app->extend('twig', function (Environment $twig) use ($twigExtension) {
30
+            $app->extend('twig', function(Environment $twig) use ($twigExtension) {
31 31
                 $twig->addExtension($twigExtension);
32 32
 
33 33
                 return $twig;
Please login to merge, or discard this patch.