@@ -157,7 +157,7 @@ |
||
157 | 157 | protected function parseResult(): array |
158 | 158 | { |
159 | 159 | return array_map( |
160 | - function ($typeArray) { |
|
160 | + function($typeArray) { |
|
161 | 161 | return array_keys($typeArray); |
162 | 162 | }, |
163 | 163 | $this->subTemplates |
@@ -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 | } |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | */ |
79 | 79 | public function getHttpBootstrappers(): array |
80 | 80 | { |
81 | - $callback = function (array $modules) { |
|
81 | + $callback = function(array $modules) { |
|
82 | 82 | $bootstrappers = []; |
83 | 83 | foreach ($modules as $module) { |
84 | 84 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | */ |
101 | 101 | public function getCliBootstrappers(): array |
102 | 102 | { |
103 | - $callback = function (array $modules) { |
|
103 | + $callback = function(array $modules) { |
|
104 | 104 | $bootstrappers = []; |
105 | 105 | foreach ($modules as $module) { |
106 | 106 | if (isset($module[Module::BOOTSTRAPPERS])) { |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | */ |
123 | 123 | public function getCommands(): array |
124 | 124 | { |
125 | - $callback = function (array $modules) { |
|
125 | + $callback = function(array $modules) { |
|
126 | 126 | $commands = []; |
127 | 127 | foreach ($modules as $module) { |
128 | 128 | if (isset($module[Module::COMMANDS])) { |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | */ |
203 | 203 | protected function namedOptionsCallback(string $option): callable |
204 | 204 | { |
205 | - return function ($modules) use ($option) { |
|
205 | + return function($modules) use ($option) { |
|
206 | 206 | $merged = []; |
207 | 207 | foreach ($modules as $module) { |
208 | 208 | if (!isset($module[$option])) { |
@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | */ |
236 | 236 | protected function prioritizedOptionsCallback(string $option, bool $reversed = false): callable |
237 | 237 | { |
238 | - return function ($modules) use ($option, $reversed) { |
|
238 | + return function($modules) use ($option, $reversed) { |
|
239 | 239 | $merged = []; |
240 | 240 | foreach ($modules as $module) { |
241 | 241 | if (!isset($module[$option])) { |
@@ -279,7 +279,7 @@ discard block |
||
279 | 279 | */ |
280 | 280 | protected function simpleOptionCallback(string $option): callable |
281 | 281 | { |
282 | - return function ($modules) use ($option) { |
|
282 | + return function($modules) use ($option) { |
|
283 | 283 | $merged = []; |
284 | 284 | foreach ($modules as $module) { |
285 | 285 | if (!isset($module[$option])) { |