@@ -146,7 +146,7 @@ |
||
| 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 | |
@@ -308,7 +308,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -37,7 +37,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -40,7 +40,7 @@ |
||
| 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 | ]; |
@@ -71,7 +71,7 @@ |
||
| 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 | } |
@@ -319,7 +319,7 @@ |
||
| 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); |
@@ -29,7 +29,7 @@ discard block |
||
| 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 |
||
| 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); |
@@ -27,7 +27,7 @@ |
||
| 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; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $twigExtension = $this->getFactory()->createNavigationTwigExtension(); |
| 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; |