@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | { |
| 15 | 15 | app('router')->group($this->middlewareGroupExists('web') |
| 16 | 16 | ? ['middleware' => 'web'] |
| 17 | - : [], function () { |
|
| 17 | + : [], function() { |
|
| 18 | 18 | require __DIR__ . '/../../routes/web.php'; |
| 19 | 19 | }); |
| 20 | 20 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | { |
| 49 | 49 | $routes = collect(app('router')->getRoutes()->getRoutes()); |
| 50 | 50 | |
| 51 | - return $routes->reduce(function ($carry, Route $route) use ($group) { |
|
| 51 | + return $routes->reduce(function($carry, Route $route) use ($group) { |
|
| 52 | 52 | $carry = ($carry ?? false) ?: false; |
| 53 | 53 | $actions = (array) $route->getAction(); |
| 54 | 54 | |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | private function shouldRegisterMiddleware() : bool |
| 66 | 66 | { |
| 67 | - return (! request()->ajax() |
|
| 67 | + return (!request()->ajax() |
|
| 68 | 68 | && (php_sapi_name() === 'fpm-fcgi' || app('env') === 'testing')); |
| 69 | 69 | } |
| 70 | 70 | } |