@@ -373,7 +373,7 @@ |
||
373 | 373 | protected function renderView(string $view, array $parameters = [], ?Response $response = null): Response |
374 | 374 | { |
375 | 375 | if ($response instanceof StreamedResponse) { |
376 | - $response->setCallback(function () use ($view, $parameters) { |
|
376 | + $response->setCallback(function() use ($view, $parameters) { |
|
377 | 377 | $this->getTwig()->display($view, $parameters); |
378 | 378 | }); |
379 | 379 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | $merchantProductAbstractEntity->setFkProductAbstract($seedData[MerchantProductTransfer::ID_PRODUCT_ABSTRACT]); |
29 | 29 | $merchantProductAbstractEntity->save(); |
30 | 30 | |
31 | - $this->getDataCleanupHelper()->_addCleanup(function () use ($merchantProductAbstractEntity) { |
|
31 | + $this->getDataCleanupHelper()->_addCleanup(function() use ($merchantProductAbstractEntity) { |
|
32 | 32 | $merchantProductAbstractEntity->delete(); |
33 | 33 | }); |
34 | 34 |
@@ -56,13 +56,13 @@ |
||
56 | 56 | { |
57 | 57 | parent::setUp(); |
58 | 58 | |
59 | - $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function (Container $container) { |
|
59 | + $this->tester->setDependency(QueueDependencyProvider::QUEUE_ADAPTERS, function(Container $container) { |
|
60 | 60 | return [ |
61 | 61 | $container->getLocator()->rabbitMq()->client()->createQueueAdapter(), |
62 | 62 | ]; |
63 | 63 | }); |
64 | 64 | |
65 | - $this->tester->setDependency(ProductStorageDependencyProvider::PLUGINS_PRODUCT_ABSTRACT_STORAGE_EXPANDER, function (ZedContainer $container) { |
|
65 | + $this->tester->setDependency(ProductStorageDependencyProvider::PLUGINS_PRODUCT_ABSTRACT_STORAGE_EXPANDER, function(ZedContainer $container) { |
|
66 | 66 | return [ |
67 | 67 | new MerchantProductAbstractStorageExpanderPlugin(), |
68 | 68 | ]; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function addKernelService(ContainerInterface $container): ContainerInterface |
72 | 72 | { |
73 | - $container->set(static::SERVICE_KERNEL, function (ContainerInterface $container) { |
|
73 | + $container->set(static::SERVICE_KERNEL, function(ContainerInterface $container) { |
|
74 | 74 | return new HttpKernel( |
75 | 75 | $this->getEventDispatcher($container), |
76 | 76 | $this->getResolver($container), |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | */ |
89 | 89 | protected function addRequestStackService(ContainerInterface $container): ContainerInterface |
90 | 90 | { |
91 | - $container->set(static::SERVICE_REQUEST_STACK, function () { |
|
91 | + $container->set(static::SERVICE_REQUEST_STACK, function() { |
|
92 | 92 | return new RequestStack(); |
93 | 93 | }); |
94 | 94 | |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | protected function addRequestContextService(ContainerInterface $container): ContainerInterface |
104 | 104 | { |
105 | - $container->set(static::SERVICE_REQUEST_CONTEXT, function () { |
|
105 | + $container->set(static::SERVICE_REQUEST_CONTEXT, function() { |
|
106 | 106 | $context = new RequestContext(); |
107 | 107 | |
108 | 108 | $context->setHttpPort($this->getConfig()->getHttpPort()); |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | { |
27 | 27 | /** @var \Spryker\Zed\EventDispatcher\Communication\Plugin\Application\EventDispatcherApplicationPlugin $eventDispatcherApplicationPlugin */ |
28 | 28 | $eventDispatcherApplicationPlugin = Stub::make(EventDispatcherApplicationPlugin::class, [ |
29 | - 'getFactory' => function () { |
|
29 | + 'getFactory' => function() { |
|
30 | 30 | return $this->getFactory(); |
31 | 31 | }, |
32 | 32 | ]); |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | protected function getFactory(): EventDispatcherCommunicationFactory |
41 | 41 | { |
42 | 42 | $communicationHelper = $this->getCommunicationHelper(); |
43 | - $communicationHelper->mockFactoryMethod('getEventDispatcherPlugins', function () { |
|
43 | + $communicationHelper->mockFactoryMethod('getEventDispatcherPlugins', function() { |
|
44 | 44 | return $this->eventDispatcherPlugins; |
45 | 45 | }, static::MODULE_NAME); |
46 | 46 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | public function addRouter(RouterInterface $router, $priority = 0) |
71 | 71 | { |
72 | 72 | /** @var \Spryker\Service\Container\ContainerInterface $this */ |
73 | - $this->set(static::ROUTERS, $this->extend(static::ROUTERS, function (ChainRouter $chainRouter) use ($router, $priority) { |
|
73 | + $this->set(static::ROUTERS, $this->extend(static::ROUTERS, function(ChainRouter $chainRouter) use ($router, $priority) { |
|
74 | 74 | $chainRouter->add($router, $priority); |
75 | 75 | |
76 | 76 | return $chainRouter; |
@@ -50,7 +50,7 @@ |
||
50 | 50 | */ |
51 | 51 | public function extend(EventDispatcherInterface $eventDispatcher, ContainerInterface $container): EventDispatcherInterface |
52 | 52 | { |
53 | - $eventDispatcher->addListener(KernelEvents::REQUEST, function (RequestEvent $event) { |
|
53 | + $eventDispatcher->addListener(KernelEvents::REQUEST, function(RequestEvent $event) { |
|
54 | 54 | return $this->addRequestAttributes($event); |
55 | 55 | }, static::EARLY_EVENT); |
56 | 56 |
@@ -98,7 +98,7 @@ |
||
98 | 98 | { |
99 | 99 | /** @var \Spryker\Zed\Validator\Communication\Plugin\Application\ValidatorApplicationPlugin $validatorApplicationPlugin */ |
100 | 100 | $validatorApplicationPlugin = Stub::make(ValidatorApplicationPlugin::class, [ |
101 | - 'getFactory' => function () { |
|
101 | + 'getFactory' => function() { |
|
102 | 102 | return $this->getFactory(); |
103 | 103 | }, |
104 | 104 | ]); |
@@ -87,10 +87,10 @@ |
||
87 | 87 | { |
88 | 88 | /** @var \Spryker\Zed\Form\Communication\Plugin\Application\FormApplicationPlugin $formApplicationPlugin */ |
89 | 89 | $formApplicationPlugin = Stub::make(FormApplicationPlugin::class, [ |
90 | - 'getFactory' => function () { |
|
90 | + 'getFactory' => function() { |
|
91 | 91 | return $this->getFactory(); |
92 | 92 | }, |
93 | - 'getConfig' => function () { |
|
93 | + 'getConfig' => function() { |
|
94 | 94 | return $this->getConfig(); |
95 | 95 | }, |
96 | 96 | ]); |