@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Broadcast::channel('App.User.{id}', function ($user, $id) { |
|
| 14 | +Broadcast::channel('App.User.{id}', function($user, $id) { |
|
| 15 | 15 | return (int) $user->id === (int) $id; |
| 16 | 16 | }); |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * @author Taylor Otwell <[email protected]> |
| 7 | 7 | */ |
| 8 | 8 | $uri = urldecode( |
| 9 | - parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
| 9 | + parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
| 10 | 10 | ); |
| 11 | 11 | |
| 12 | 12 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the |
@@ -116,5 +116,5 @@ |
||
| 116 | 116 | | |
| 117 | 117 | */ |
| 118 | 118 | |
| 119 | - 'attributes' => [], |
|
| 119 | + 'attributes' => [ ], |
|
| 120 | 120 | ]; |
@@ -12,10 +12,10 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | 14 | 'supportsCredentials' => false, |
| 15 | - 'allowedOrigins' => ['*'], |
|
| 16 | - 'allowedOriginsPatterns' => [], |
|
| 17 | - 'allowedHeaders' => ['*'], |
|
| 18 | - 'allowedMethods' => ['*'], |
|
| 19 | - 'exposedHeaders' => [], |
|
| 15 | + 'allowedOrigins' => [ '*' ], |
|
| 16 | + 'allowedOriginsPatterns' => [ ], |
|
| 17 | + 'allowedHeaders' => [ '*' ], |
|
| 18 | + 'allowedMethods' => [ '*' ], |
|
| 19 | + 'exposedHeaders' => [ ], |
|
| 20 | 20 | 'maxAge' => 0, |
| 21 | 21 | ]; |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | | |
| 109 | 109 | */ |
| 110 | 110 | |
| 111 | - 'lottery' => [2, 100], |
|
| 111 | + 'lottery' => [ 2, 100 ], |
|
| 112 | 112 | |
| 113 | 113 | /* |
| 114 | 114 | |-------------------------------------------------------------------------- |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | 'channels' => [ |
| 32 | 32 | 'stack' => [ |
| 33 | 33 | 'driver' => 'stack', |
| 34 | - 'channels' => ['single'], |
|
| 34 | + 'channels' => [ 'single' ], |
|
| 35 | 35 | ], |
| 36 | 36 | |
| 37 | 37 | 'single' => [ |
@@ -15,11 +15,11 @@ |
||
| 15 | 15 | */ |
| 16 | 16 | public function logout() |
| 17 | 17 | { |
| 18 | - if (! Auth::user()->token()->revoke()) { |
|
| 18 | + if (!Auth::user()->token()->revoke()) { |
|
| 19 | 19 | throw new HttpException(500); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | return response() |
| 23 | - ->json(['message' => 'Successfully logged out']); |
|
| 23 | + ->json([ 'message' => 'Successfully logged out' ]); |
|
| 24 | 24 | } |
| 25 | 25 | } |