@@ -29,7 +29,7 @@ |
||
29 | 29 | */ |
30 | 30 | public function extend(EventDispatcherInterface $eventDispatcher, ContainerInterface $container): EventDispatcherInterface |
31 | 31 | { |
32 | - $eventDispatcher->addListener(KernelEvents::TERMINATE, function () { |
|
32 | + $eventDispatcher->addListener(KernelEvents::TERMINATE, function() { |
|
33 | 33 | $this->persistClassResolverCache(); |
34 | 34 | }); |
35 | 35 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | protected function createRuntimeComponentsCollection(ContainerInterface $container): array |
80 | 80 | { |
81 | 81 | return [ |
82 | - HttpKernelRuntime::class => function () use ($container) { |
|
82 | + HttpKernelRuntime::class => function() use ($container) { |
|
83 | 83 | return new HttpKernelRuntime($this->createFragmentHandler($container)); |
84 | 84 | }, |
85 | 85 | ]; |
@@ -79,7 +79,7 @@ |
||
79 | 79 | protected function createRuntimeComponentsCollection(ContainerInterface $container): array |
80 | 80 | { |
81 | 81 | return [ |
82 | - HttpKernelRuntime::class => function () use ($container) { |
|
82 | + HttpKernelRuntime::class => function() use ($container) { |
|
83 | 83 | return new HttpKernelRuntime($this->createFragmentHandler($container)); |
84 | 84 | }, |
85 | 85 | ]; |
@@ -463,7 +463,7 @@ discard block |
||
463 | 463 | |
464 | 464 | $quoteClientMock |
465 | 465 | ->method('setQuote') |
466 | - ->willReturnCallback(function (QuoteTransfer $quoteTransfer) { |
|
466 | + ->willReturnCallback(function(QuoteTransfer $quoteTransfer) { |
|
467 | 467 | return $quoteTransfer; |
468 | 468 | }); |
469 | 469 | |
@@ -502,13 +502,13 @@ discard block |
||
502 | 502 | |
503 | 503 | $cartChangeRequestExpanderMock |
504 | 504 | ->method('addItemsRequestExpand') |
505 | - ->willReturnCallback(function (CartChangeTransfer $cartChangeTransfer) { |
|
505 | + ->willReturnCallback(function(CartChangeTransfer $cartChangeTransfer) { |
|
506 | 506 | return $cartChangeTransfer; |
507 | 507 | }); |
508 | 508 | |
509 | 509 | $cartChangeRequestExpanderMock |
510 | 510 | ->method('removeItemRequestExpand') |
511 | - ->willReturnCallback(function (CartChangeTransfer $cartChangeTransfer) { |
|
511 | + ->willReturnCallback(function(CartChangeTransfer $cartChangeTransfer) { |
|
512 | 512 | return $cartChangeTransfer; |
513 | 513 | }); |
514 | 514 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | protected function addSessionService(ContainerInterface $container): ContainerInterface |
65 | 65 | { |
66 | - $container->set(static::SERVICE_SESSION, function (ContainerInterface $container) { |
|
66 | + $container->set(static::SERVICE_SESSION, function(ContainerInterface $container) { |
|
67 | 67 | return new Session($this->createSessionStorage($container)); |
68 | 68 | }); |
69 | 69 |
@@ -57,7 +57,7 @@ |
||
57 | 57 | */ |
58 | 58 | protected function addSessionService(ContainerInterface $container): ContainerInterface |
59 | 59 | { |
60 | - $container->set(static::SERVICE_SESSION, function () { |
|
60 | + $container->set(static::SERVICE_SESSION, function() { |
|
61 | 61 | return $this->getFactory()->createSession(); |
62 | 62 | }); |
63 | 63 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | */ |
64 | 64 | protected function addSessionService(ContainerInterface $container): ContainerInterface |
65 | 65 | { |
66 | - $container->set(static::SERVICE_SESSION, function (ContainerInterface $container) { |
|
66 | + $container->set(static::SERVICE_SESSION, function(ContainerInterface $container) { |
|
67 | 67 | return new Session($this->createSessionStorage($container)); |
68 | 68 | }); |
69 | 69 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return $this->extendExistingEventDispatcher($container); |
41 | 41 | } |
42 | 42 | |
43 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
43 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
44 | 44 | $eventDispatcher = $this->getFactory()->createEventDispatcher(); |
45 | 45 | |
46 | 46 | $eventDispatcher = $this->extendEventDispatcher($eventDispatcher, $container); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function extendExistingEventDispatcher(ContainerInterface $container): ContainerInterface |
62 | 62 | { |
63 | - $container->extend(static::SERVICE_DISPATCHER, function (SymfonyEventDispatcherInterface $existingEventDispatcher, ContainerInterface $container) { |
|
63 | + $container->extend(static::SERVICE_DISPATCHER, function(SymfonyEventDispatcherInterface $existingEventDispatcher, ContainerInterface $container) { |
|
64 | 64 | $eventDispatcher = $this->getFactory()->createEventDispatcher(); |
65 | 65 | |
66 | 66 | if ($existingEventDispatcher instanceof SymfonyTraceableEventDispatcher && $container->has(static::SERVICE_STOPWATCH)) { |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | return $this->extendExistingEventDispatcher($container); |
41 | 41 | } |
42 | 42 | |
43 | - $container->set(static::SERVICE_DISPATCHER, function (ContainerInterface $container) { |
|
43 | + $container->set(static::SERVICE_DISPATCHER, function(ContainerInterface $container) { |
|
44 | 44 | $eventDispatcher = $this->getFactory()->createEventDispatcher(); |
45 | 45 | |
46 | 46 | $eventDispatcher = $this->extendEventDispatcher($eventDispatcher, $container); |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | protected function extendExistingEventDispatcher(ContainerInterface $container): ContainerInterface |
62 | 62 | { |
63 | - $container->extend(static::SERVICE_DISPATCHER, function (SymfonyEventDispatcherInterface $existingEventDispatcher, ContainerInterface $container) { |
|
63 | + $container->extend(static::SERVICE_DISPATCHER, function(SymfonyEventDispatcherInterface $existingEventDispatcher, ContainerInterface $container) { |
|
64 | 64 | $eventDispatcher = $this->getFactory()->createEventDispatcher(); |
65 | 65 | |
66 | 66 | if ($existingEventDispatcher instanceof SymfonyTraceableEventDispatcher && $container->has(static::SERVICE_STOPWATCH)) { |