@@ -14,7 +14,7 @@ |
||
14 | 14 | */ |
15 | 15 | $router->group( |
16 | 16 | ['controllerNamespace' => 'AbterPhp\Framework\Http\Controllers'], |
17 | - function (Router $router) { |
|
17 | + function(Router $router) { |
|
18 | 18 | |
19 | 19 | /** @see \AbterPhp\Framework\Http\Controllers\Website\Index::notFound() */ |
20 | 20 | $router->any( |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | $viewFactory->registerBuilder( |
26 | 26 | 'layouts/default', |
27 | - function (IView $view) { |
|
27 | + function(IView $view) { |
|
28 | 28 | /** @see DefaultBuilder::build() */ |
29 | 29 | return (new DefaultBuilder())->build($view); |
30 | 30 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function getHttpBootstrappers(): array |
81 | 81 | { |
82 | - $callback = function (array $modules) { |
|
82 | + $callback = function(array $modules) { |
|
83 | 83 | $bootstrappers = []; |
84 | 84 | foreach ($modules as $module) { |
85 | 85 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | public function getCliBootstrappers(): array |
103 | 103 | { |
104 | - $callback = function (array $modules) { |
|
104 | + $callback = function(array $modules) { |
|
105 | 105 | $bootstrappers = []; |
106 | 106 | foreach ($modules as $module) { |
107 | 107 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | */ |
124 | 124 | public function getCommands(): array |
125 | 125 | { |
126 | - $callback = function (array $modules) { |
|
126 | + $callback = function(array $modules) { |
|
127 | 127 | $commands = []; |
128 | 128 | foreach ($modules as $module) { |
129 | 129 | if (isset($module[Module::COMMANDS])) { |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | */ |
204 | 204 | protected function simpleOptionCallback(string $option): callable |
205 | 205 | { |
206 | - return function ($modules) use ($option) { |
|
206 | + return function($modules) use ($option) { |
|
207 | 207 | $merged = []; |
208 | 208 | foreach ($modules as $module) { |
209 | 209 | if (!isset($module[$option])) { |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | */ |
231 | 231 | protected function simpleNamedOptions(string $option): callable |
232 | 232 | { |
233 | - return function ($modules) use ($option) { |
|
233 | + return function($modules) use ($option) { |
|
234 | 234 | $merged = []; |
235 | 235 | foreach ($modules as $module) { |
236 | 236 | if (!isset($module[$option])) { |
@@ -259,7 +259,7 @@ discard block |
||
259 | 259 | */ |
260 | 260 | protected function namedOptionsCallback(string $option): callable |
261 | 261 | { |
262 | - return function ($modules) use ($option) { |
|
262 | + return function($modules) use ($option) { |
|
263 | 263 | $merged = []; |
264 | 264 | foreach ($modules as $module) { |
265 | 265 | if (!isset($module[$option])) { |
@@ -292,7 +292,7 @@ discard block |
||
292 | 292 | */ |
293 | 293 | protected function prioritizedOptionsCallback(string $option, bool $reversed = false): callable |
294 | 294 | { |
295 | - return function ($modules) use ($option, $reversed) { |
|
295 | + return function($modules) use ($option, $reversed) { |
|
296 | 296 | $merged = []; |
297 | 297 | foreach ($modules as $module) { |
298 | 298 | if (!isset($module[$option])) { |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | $transpiler = $container->resolve(ITranspiler::class); |
74 | 74 | $transpiler->registerViewFunction( |
75 | 75 | 'assetJs', |
76 | - function ($keys, $type = '') use ($assets) { |
|
77 | - $callback = function ($key) use ($assets, $type) { |
|
76 | + function($keys, $type = '') use ($assets) { |
|
77 | + $callback = function($key) use ($assets, $type) { |
|
78 | 78 | $path = $assets->ensureJsWebPath($key); |
79 | 79 | if (empty($path)) { |
80 | 80 | return ''; |
@@ -92,8 +92,8 @@ discard block |
||
92 | 92 | ); |
93 | 93 | $transpiler->registerViewFunction( |
94 | 94 | 'assetCss', |
95 | - function ($keys) use ($assets) { |
|
96 | - $callback = function ($key) use ($assets) { |
|
95 | + function($keys) use ($assets) { |
|
96 | + $callback = function($key) use ($assets) { |
|
97 | 97 | $path = $assets->ensureCssWebPath($key); |
98 | 98 | if (empty($path)) { |
99 | 99 | return ''; |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | ); |
108 | 108 | $transpiler->registerViewFunction( |
109 | 109 | 'assetImg', |
110 | - function ($key, $alt = '') use ($assets) { |
|
110 | + function($key, $alt = '') use ($assets) { |
|
111 | 111 | $path = $assets->ensureImgWebPath($key); |
112 | 112 | if (empty($path)) { |
113 | 113 | return ''; |