@@ -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)) { |
@@ -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 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | */ |
35 | 35 | protected function addEventDispatcherPlugins(Container $container): Container |
36 | 36 | { |
37 | - $container->set(static::PLUGINS_EVENT_DISPATCHER, function (Container $container) { |
|
37 | + $container->set(static::PLUGINS_EVENT_DISPATCHER, function(Container $container) { |
|
38 | 38 | return $this->getEventDispatcherPlugins(); |
39 | 39 | }); |
40 | 40 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function getZedModalFunction(Environment $twig): TwigFunction |
48 | 48 | { |
49 | - return new TwigFunction(static::FUNCTION_NAME_MODAL, function (string $title, string $content, ?string $footer = null, ?array $extraData = null) use ($twig) { |
|
49 | + return new TwigFunction(static::FUNCTION_NAME_MODAL, function(string $title, string $content, ?string $footer = null, ?array $extraData = null) use ($twig) { |
|
50 | 50 | return $twig->render( |
51 | 51 | $this->getConfig()->getDefaultModalTemplatePath(), |
52 | 52 | [ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function getZedListGroupFunction(Environment $twig): TwigFunction |
48 | 48 | { |
49 | - return new TwigFunction(static::FUNCTION_NAME_LIST_GROUP, function (array $items) use ($twig) { |
|
49 | + return new TwigFunction(static::FUNCTION_NAME_LIST_GROUP, function(array $items) use ($twig) { |
|
50 | 50 | if (is_array(array_values($items)[0])) { |
51 | 51 | return $twig->render( |
52 | 52 | $this->getConfig()->getDefaultMultiListGroupTemplatePath(), |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function getZedAssetsPathFunction(): TwigFunction |
46 | 46 | { |
47 | - return new TwigFunction(static::FUNCTION_NAME_ASSETS_PATH, function (string $path) { |
|
47 | + return new TwigFunction(static::FUNCTION_NAME_ASSETS_PATH, function(string $path) { |
|
48 | 48 | return $this->getZedAssetsPathByName($path); |
49 | 49 | }, ['is_safe' => ['html']]); |
50 | 50 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function getZedPanelFunction(Environment $twig): TwigFunction |
48 | 48 | { |
49 | - return new TwigFunction(static::FUNCTION_NAME_PANEL, function (string $title, string $content, ?array $options = null, ?string $footer = null) use ($twig) { |
|
49 | + return new TwigFunction(static::FUNCTION_NAME_PANEL, function(string $title, string $content, ?array $options = null, ?string $footer = null) use ($twig) { |
|
50 | 50 | $defaultOptions = [ |
51 | 51 | 'class' => 'default', |
52 | 52 | 'id' => false, |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | protected function getTabsFunction(Environment $twig): TwigFunction |
49 | 49 | { |
50 | - return new TwigFunction(static::FUNCTION_NAME_TABS, function (Environment $twig, TabsViewTransfer $tabsViewTransfer, array $context = []) { |
|
50 | + return new TwigFunction(static::FUNCTION_NAME_TABS, function(Environment $twig, TabsViewTransfer $tabsViewTransfer, array $context = []) { |
|
51 | 51 | $context['tabsViewTransfer'] = $tabsViewTransfer; |
52 | 52 | |
53 | 53 | return $twig->render($this->getConfig()->getTabsDefaultTemplatePath(), $context); |