@@ -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 | } |
@@ -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])) { |