@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | { |
| 135 | 135 | $oops = "Oops, it looks like this content doesn't exist..."; |
| 136 | 136 | |
| 137 | - $this->router->onError(function ($router, $err_msg, $type, $err) { |
|
| 137 | + $this->router->onError(function($router, $err_msg, $type, $err) { |
|
| 138 | 138 | logger('Routing error: ' . $err_msg); |
| 139 | 139 | |
| 140 | 140 | /** @var Exception|\Throwable $err */ |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | // Manage requests for api module |
| 148 | 148 | $this->router->respond(['POST'], |
| 149 | 149 | '@/api\.php', |
| 150 | - function ($request, $response, $service) use ($oops) { |
|
| 150 | + function($request, $response, $service) use ($oops) { |
|
| 151 | 151 | try { |
| 152 | 152 | $apiRequest = self::$container->get(ApiRequest::class); |
| 153 | 153 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | // Manage requests for web module |
| 187 | 187 | $this->router->respond(['GET', 'POST'], |
| 188 | 188 | '@/index\.php', |
| 189 | - function ($request, $response, $service) use ($oops) { |
|
| 189 | + function($request, $response, $service) use ($oops) { |
|
| 190 | 190 | try { |
| 191 | 191 | /** @var \Klein\Request $request */ |
| 192 | 192 | $route = Filter::getString($request->param('r', 'index/index')); |