@@ -30,7 +30,7 @@ |
||
30 | 30 | */ |
31 | 31 | public function getFunction() |
32 | 32 | { |
33 | - return function ($currentController) { |
|
33 | + return function($currentController) { |
|
34 | 34 | $utilNetworkHost = new Host(); |
35 | 35 | $html = '<div class="zed:header__environment"><i class="icon-cogs"></i>' |
36 | 36 | . '<span>' . APPLICATION_ENV . '</span>' |
@@ -32,7 +32,7 @@ |
||
32 | 32 | public function register(Application $app) |
33 | 33 | { |
34 | 34 | $app['twig'] = $app->share( |
35 | - $app->extend('twig', function (Environment $twig) { |
|
35 | + $app->extend('twig', function(Environment $twig) { |
|
36 | 36 | $functionProvider = new EnvironmentInfoFunctionProvider(); |
37 | 37 | $twig->addFunction(new TwigFunction( |
38 | 38 | $functionProvider->getFunctionName(), |
@@ -39,7 +39,7 @@ |
||
39 | 39 | */ |
40 | 40 | public function getFunction() |
41 | 41 | { |
42 | - return function ($url, array $query = [], array $options = []) { |
|
42 | + return function($url, array $query = [], array $options = []) { |
|
43 | 43 | $url = Url::generate($url, $query, $this->formatOptions($options)); |
44 | 44 | |
45 | 45 | return $url->buildEscaped(); |
@@ -190,7 +190,7 @@ |
||
190 | 190 | $sessionHandlerProviderPluginMock->method('getSessionHandlerName')->willReturn(static::DUMMY_SESSION_HANDLER_NAME); |
191 | 191 | $sessionHandlerProviderPluginMock->method('getSessionHandler')->willReturn(new SessionHandlerStub()); |
192 | 192 | |
193 | - $this->tester->setDependency(SessionDependencyProvider::PLUGINS_SESSION_HANDLER, function (Container $container) use ($sessionHandlerProviderPluginMock) { |
|
193 | + $this->tester->setDependency(SessionDependencyProvider::PLUGINS_SESSION_HANDLER, function(Container $container) use ($sessionHandlerProviderPluginMock) { |
|
194 | 194 | return [ |
195 | 195 | $sessionHandlerProviderPluginMock, |
196 | 196 | ]; |
@@ -51,7 +51,7 @@ |
||
51 | 51 | */ |
52 | 52 | public function getFunction(): callable |
53 | 53 | { |
54 | - return function (array $navigationItems = []): ?string { |
|
54 | + return function(array $navigationItems = []): ?string { |
|
55 | 55 | $menuTree = $this->getMenuTree($navigationItems); |
56 | 56 | |
57 | 57 | return $this->utilEncodingService->encodeJson($menuTree); |
@@ -67,7 +67,7 @@ |
||
67 | 67 | */ |
68 | 68 | public function getFunction(): callable |
69 | 69 | { |
70 | - return function (GuiTableConfigurationTransfer $guiTableConfigurationTransfer, bool $jsonEncode = true, array $overwrite = []) { |
|
70 | + return function(GuiTableConfigurationTransfer $guiTableConfigurationTransfer, bool $jsonEncode = true, array $overwrite = []) { |
|
71 | 71 | $guiTableConfigurationTransfer = $this->configurationDefaultValuesExpander->setDefaultValues($guiTableConfigurationTransfer); |
72 | 72 | $guiTableConfigurationTransfer = $this->configurationTranslator->translateConfiguration($guiTableConfigurationTransfer); |
73 | 73 |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | protected function addTwigService(ContainerInterface $container): ContainerInterface |
49 | 49 | { |
50 | - $container->set(static::SERVICE_TWIG, function (ContainerInterface $container) { |
|
50 | + $container->set(static::SERVICE_TWIG, function(ContainerInterface $container) { |
|
51 | 51 | /** @var \Twig\Loader\LoaderInterface $twigLoader */ |
52 | 52 | $twigLoader = $this->getChainLoader(); |
53 | 53 | $twigOptions = $this->getTwigOptions($container); |
@@ -190,7 +190,7 @@ |
||
190 | 190 | $sessionHandlerProviderPluginMock->method('getSessionHandlerName')->willReturn(static::DUMMY_SESSION_HANDLER_NAME); |
191 | 191 | $sessionHandlerProviderPluginMock->method('getSessionHandler')->willReturn(new SessionHandlerStub()); |
192 | 192 | |
193 | - $this->tester->setDependency(SessionDependencyProvider::PLUGINS_SESSION_HANDLER, function (Container $container) use ($sessionHandlerProviderPluginMock) { |
|
193 | + $this->tester->setDependency(SessionDependencyProvider::PLUGINS_SESSION_HANDLER, function(Container $container) use ($sessionHandlerProviderPluginMock) { |
|
194 | 194 | return [ |
195 | 195 | $sessionHandlerProviderPluginMock, |
196 | 196 | ]; |
@@ -47,7 +47,7 @@ |
||
47 | 47 | */ |
48 | 48 | protected function addTwigService(ContainerInterface $container): ContainerInterface |
49 | 49 | { |
50 | - $container->set(static::SERVICE_TWIG, function (ContainerInterface $container) { |
|
50 | + $container->set(static::SERVICE_TWIG, function(ContainerInterface $container) { |
|
51 | 51 | /** @var \Twig\Loader\LoaderInterface $twigLoader */ |
52 | 52 | $twigLoader = $this->getChainLoader(); |
53 | 53 | $twigOptions = $this->getTwigOptions($container); |