@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | { |
| 36 | 36 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
| 37 | 37 | } |
| 38 | - $whoops->pushHandler(function () { |
|
| 38 | + $whoops->pushHandler(function() { |
|
| 39 | 39 | Response::create('Uh oh, something broke internally.', Response::HTTP_INTERNAL_SERVER_ERROR)->send(); |
| 40 | 40 | }); |
| 41 | 41 | } |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | /** |
| 61 | 61 | * Routes |
| 62 | 62 | */ |
| 63 | -$dispatcher = FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) { |
|
| 63 | +$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) { |
|
| 64 | 64 | $routes = require __DIR__ . '/routes.php'; |
| 65 | 65 | foreach ($routes as $route) { |
| 66 | 66 | $r->addRoute($route[0], $route[1], $route[2]); |
@@ -30,8 +30,7 @@ |
||
| 30 | 30 | if (version_compare(PHP_VERSION, '5.3', '>=')) |
| 31 | 31 | { |
| 32 | 32 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); |
| 33 | - } |
|
| 34 | - else |
|
| 33 | + } else |
|
| 35 | 34 | { |
| 36 | 35 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
| 37 | 36 | } |