@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | { |
| 102 | 102 | if ($this->module_manager == null) { |
| 103 | 103 | $config = $this->config(); |
| 104 | - $modules = (isset($config['modules']) ? $config['modules'] : [] ); |
|
| 104 | + $modules = (isset($config['modules']) ? $config['modules'] : []); |
|
| 105 | 105 | $this->module_manager = new ModuleManager([ |
| 106 | 106 | 'config' => $modules, |
| 107 | 107 | 'app' => $this->app, |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | { |
| 119 | 119 | if ($this->route_manager === null) { |
| 120 | 120 | $config = $this->config(); |
| 121 | - $routes = (isset($config['routes']) ? $config['routes'] : [] ); |
|
| 121 | + $routes = (isset($config['routes']) ? $config['routes'] : []); |
|
| 122 | 122 | $route_manager = new RouteManager([ |
| 123 | 123 | 'config' => $routes, |
| 124 | 124 | 'app' => $this->app, |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | { |
| 136 | 136 | if ($this->middleware_manager === null) { |
| 137 | 137 | $config = $this->config(); |
| 138 | - $middlewares = (isset($config['middlewares']) ? $config['middlewares'] : [] ); |
|
| 138 | + $middlewares = (isset($config['middlewares']) ? $config['middlewares'] : []); |
|
| 139 | 139 | $middleware_manager = new MiddlewareManager([ |
| 140 | 140 | 'config' => $middlewares, |
| 141 | 141 | 'app' => $this->app, |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | // For now, need to rely on a catch-all... |
| 228 | 228 | $this->app->get( |
| 229 | 229 | '{catchall:.*}', |
| 230 | - function ( |
|
| 230 | + function( |
|
| 231 | 231 | RequestInterface $request, |
| 232 | 232 | ResponseInterface $response, |
| 233 | 233 | $args |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | if (isset($config['languages'])) { |
| 66 | - $available_langs = array_filter($config['languages'], function ($config) { |
|
| 66 | + $available_langs = array_filter($config['languages'], function($config) { |
|
| 67 | 67 | return (!isset($config['active']) || $config['active']); |
| 68 | 68 | }); |
| 69 | 69 | |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public static function language_index() |
| 134 | 134 | { |
| 135 | 135 | if (!isset(self::$language_index)) { |
| 136 | - self::$language_index = new GenericConfig(__DIR__ . '/../../../../config/languages.json'); |
|
| 136 | + self::$language_index = new GenericConfig(__DIR__.'/../../../../config/languages.json'); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | return self::$language_index; |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * @return void |
| 148 | 148 | * @throws InvalidArgumentException |
| 149 | 149 | */ |
| 150 | - public function resolve_ident(LanguageInterface &$lang, $ident = null) |
|
| 150 | + public function resolve_ident(LanguageInterface & $lang, $ident = null) |
|
| 151 | 151 | { |
| 152 | 152 | if (is_string($ident)) { |
| 153 | 153 | $lang->set_ident($ident); |