@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | // If using PHP's built-in server, return false for existing files on filesystem |
| 12 | 12 | if (PHP_SAPI === 'cli-server') { |
| 13 | - $filename = __DIR__ . preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); |
|
| 13 | + $filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']); |
|
| 14 | 14 | if (is_file($filename)) { |
| 15 | 15 | return false; |
| 16 | 16 | } |
@@ -33,9 +33,9 @@ discard block |
||
| 33 | 33 | }; |
| 34 | 34 | |
| 35 | 35 | // Handle "404 Not Found" |
| 36 | -$container['notFoundHandler'] = function ($c) |
|
| 36 | +$container['notFoundHandler'] = function($c) |
|
| 37 | 37 | { |
| 38 | - return function ($request, $response) use ($c) |
|
| 38 | + return function($request, $response) use ($c) |
|
| 39 | 39 | { |
| 40 | 40 | return $c['response'] |
| 41 | 41 | ->withStatus(404) |
@@ -45,9 +45,9 @@ discard block |
||
| 45 | 45 | }; |
| 46 | 46 | |
| 47 | 47 | // Handle "500 Server Error" |
| 48 | -$container['errorHandler'] = function ($c) |
|
| 48 | +$container['errorHandler'] = function($c) |
|
| 49 | 49 | { |
| 50 | - return function ($request, $response, $exception) use ($c) |
|
| 50 | + return function($request, $response, $exception) use ($c) |
|
| 51 | 51 | { |
| 52 | 52 | return $c['response'] |
| 53 | 53 | ->withStatus(500) |