| @@ -19,7 +19,7 @@ | ||
| 19 | 19 | */ | 
| 20 | 20 | public function handle(Request $request, Closure $next, ...$guards) | 
| 21 | 21 |      { | 
| 22 | - $guards = empty($guards) ? [null] : $guards; | |
| 22 | + $guards = empty($guards) ? [ null ] : $guards; | |
| 23 | 23 | |
| 24 | 24 |          foreach ($guards as $guard) { | 
| 25 | 25 |              if (Auth::guard($guard)->check()) { | 
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | */ | 
| 15 | 15 | protected function redirectTo($request) | 
| 16 | 16 |      { | 
| 17 | -        if (! $request->expectsJson()) { | |
| 17 | +        if (!$request->expectsJson()) { | |
| 18 | 18 |              return route('login'); | 
| 19 | 19 | } | 
| 20 | 20 | } | 
| @@ -13,6 +13,6 @@ | ||
| 13 | 13 | | | 
| 14 | 14 | */ | 
| 15 | 15 | |
| 16 | -Broadcast::channel('App.Models.User.{id}', function ($user, $id) { | |
| 16 | +Broadcast::channel('App.Models.User.{id}', function($user, $id) { | |
| 17 | 17 | return (int) $user->id === (int) $id; | 
| 18 | 18 | }); | 
| @@ -14,6 +14,6 @@ | ||
| 14 | 14 | | | 
| 15 | 15 | */ | 
| 16 | 16 | |
| 17 | -Artisan::command('inspire', function () { | |
| 17 | +Artisan::command('inspire', function() { | |
| 18 | 18 | $this->comment(Inspiring::quote()); | 
| 19 | 19 |  })->purpose('Display an inspiring quote'); | 
| @@ -14,6 +14,6 @@ | ||
| 14 | 14 | | | 
| 15 | 15 | */ | 
| 16 | 16 | |
| 17 | -Route::middleware('auth:api')->get('/user', function (Request $request) { | |
| 17 | +Route::middleware('auth:api')->get('/user', function(Request $request) { | |
| 18 | 18 | return $request->user(); | 
| 19 | 19 | }); | 
| @@ -8,7 +8,7 @@ | ||
| 8 | 8 | */ | 
| 9 | 9 | |
| 10 | 10 | $uri = urldecode( | 
| 11 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) | |
| 11 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) | |
| 12 | 12 | ); | 
| 13 | 13 | |
| 14 | 14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the | 
| @@ -12,7 +12,7 @@ | ||
| 12 | 12 | */ | 
| 13 | 13 | |
| 14 | 14 | $app = new Illuminate\Foundation\Application( | 
| 15 | - $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) | |
| 15 | + $_ENV[ 'APP_BASE_PATH' ] ?? dirname(__DIR__) | |
| 16 | 16 | ); | 
| 17 | 17 | |
| 18 | 18 | /* | 
| @@ -15,17 +15,17 @@ | ||
| 15 | 15 | | | 
| 16 | 16 | */ | 
| 17 | 17 | |
| 18 | - 'paths' => ['api/*', 'sanctum/csrf-cookie'], | |
| 18 | + 'paths' => [ 'api/*', 'sanctum/csrf-cookie' ], | |
| 19 | 19 | |
| 20 | - 'allowed_methods' => ['*'], | |
| 20 | + 'allowed_methods' => [ '*' ], | |
| 21 | 21 | |
| 22 | - 'allowed_origins' => ['*'], | |
| 22 | + 'allowed_origins' => [ '*' ], | |
| 23 | 23 | |
| 24 | - 'allowed_origins_patterns' => [], | |
| 24 | + 'allowed_origins_patterns' => [ ], | |
| 25 | 25 | |
| 26 | - 'allowed_headers' => ['*'], | |
| 26 | + 'allowed_headers' => [ '*' ], | |
| 27 | 27 | |
| 28 | - 'exposed_headers' => [], | |
| 28 | + 'exposed_headers' => [ ], | |
| 29 | 29 | |
| 30 | 30 | 'max_age' => 0, | 
| 31 | 31 | |
| @@ -113,7 +113,7 @@ | ||
| 113 | 113 | | | 
| 114 | 114 | */ | 
| 115 | 115 | |
| 116 | - 'lottery' => [2, 100], | |
| 116 | + 'lottery' => [ 2, 100 ], | |
| 117 | 117 | |
| 118 | 118 | /* | 
| 119 | 119 | |-------------------------------------------------------------------------- |