@@ -35,7 +35,7 @@ |
||
35 | 35 | */ |
36 | 36 | protected function addZedRequestClient(Container $container): Container |
37 | 37 | { |
38 | - $container->set(static::CLIENT_ZED_REQUEST, function (Container $container) { |
|
38 | + $container->set(static::CLIENT_ZED_REQUEST, function(Container $container) { |
|
39 | 39 | return new WishlistsRestApiToZedRequestClientBridge($container->getLocator()->zedRequest()->client()); |
40 | 40 | }); |
41 | 41 |
@@ -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 | ]; |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | */ |
91 | 91 | protected function addCookie(ContainerInterface $container): ContainerInterface |
92 | 92 | { |
93 | - $container->set(static::SERVICE_COOKIES, function () { |
|
93 | + $container->set(static::SERVICE_COOKIES, function() { |
|
94 | 94 | return new ArrayObject(); |
95 | 95 | }); |
96 | 96 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | protected function addHttpKernel(ContainerInterface $container): ContainerInterface |
106 | 106 | { |
107 | - $container->set(static::SERVICE_KERNEL, function (ContainerInterface $container) { |
|
107 | + $container->set(static::SERVICE_KERNEL, function(ContainerInterface $container) { |
|
108 | 108 | return new HttpKernel( |
109 | 109 | $this->getEventDispatcher($container), |
110 | 110 | $this->getResolver($container), |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | protected function addRequestStack(ContainerInterface $container): ContainerInterface |
124 | 124 | { |
125 | - $container->set(static::SERVICE_REQUEST_STACK, function () { |
|
125 | + $container->set(static::SERVICE_REQUEST_STACK, function() { |
|
126 | 126 | return new RequestStack(); |
127 | 127 | }); |
128 | 128 | |
@@ -136,7 +136,7 @@ discard block |
||
136 | 136 | */ |
137 | 137 | protected function addRequestContext(ContainerInterface $container): ContainerInterface |
138 | 138 | { |
139 | - $container->set(static::SERVICE_REQUEST_CONTEXT, function () { |
|
139 | + $container->set(static::SERVICE_REQUEST_CONTEXT, function() { |
|
140 | 140 | $context = new RequestContext(); |
141 | 141 | |
142 | 142 | $context->setHttpPort($this->getConfig()->getHttpPort()); |
@@ -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 |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | */ |
46 | 46 | protected function addCommands(Container $container): Container |
47 | 47 | { |
48 | - $container->set(static::COMMANDS, function (Container $container): array { |
|
48 | + $container->set(static::COMMANDS, function(Container $container): array { |
|
49 | 49 | return $this->getConsoleCommands($container); |
50 | 50 | }); |
51 | 51 | |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | */ |
70 | 70 | protected function addEventSubscriber(Container $container): Container |
71 | 71 | { |
72 | - $container->set(static::EVENT_SUBSCRIBER, function (Container $container): array { |
|
72 | + $container->set(static::EVENT_SUBSCRIBER, function(Container $container): array { |
|
73 | 73 | return $this->getEventSubscriber($container); |
74 | 74 | }); |
75 | 75 | |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | */ |
94 | 94 | protected function addConsoleHookPlugins(Container $container): Container |
95 | 95 | { |
96 | - $container->set(static::PLUGINS_CONSOLE_PRE_RUN_HOOK, function (Container $container): array { |
|
96 | + $container->set(static::PLUGINS_CONSOLE_PRE_RUN_HOOK, function(Container $container): array { |
|
97 | 97 | return $this->getConsolePreRunHookPlugins($container); |
98 | 98 | }); |
99 | 99 | |
100 | - $container->set(static::PLUGINS_CONSOLE_POST_RUN_HOOK, function (Container $container): array { |
|
100 | + $container->set(static::PLUGINS_CONSOLE_POST_RUN_HOOK, function(Container $container): array { |
|
101 | 101 | return $this->getConsolePostRunHookPlugins($container); |
102 | 102 | }); |
103 | 103 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | protected function addApplicationPlugins(Container $container): Container |
133 | 133 | { |
134 | - $container->set(static::PLUGINS_APPLICATION, function (Container $container): array { |
|
134 | + $container->set(static::PLUGINS_APPLICATION, function(Container $container): array { |
|
135 | 135 | return $this->getApplicationPlugins($container); |
136 | 136 | }); |
137 | 137 |
@@ -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 |