@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | app('router')->group(app("router")->hasMiddlewareGroup('web') |
| 14 | 14 | ? ['middleware' => 'web'] |
| 15 | - : [], function () { |
|
| 15 | + : [], function() { |
|
| 16 | 16 | require __DIR__ . '/../../routes/web.php'; |
| 17 | 17 | |
| 18 | 18 | if (config("app.env") === 'internaltesting') { |
@@ -55,8 +55,8 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | protected function shouldRegisterGlobalMiddleware() : bool |
| 57 | 57 | { |
| 58 | - return (! request()->ajax() |
|
| 59 | - && ! $this->shouldRegisterRouteMiddleware() |
|
| 58 | + return (!request()->ajax() |
|
| 59 | + && !$this->shouldRegisterRouteMiddleware() |
|
| 60 | 60 | && (php_sapi_name() === 'fpm-fcgi' |
| 61 | 61 | || php_sapi_name() === 'cgi-fcgi' |
| 62 | 62 | || php_sapi_name() === 'apache2handler' |