@@ -34,7 +34,7 @@ |
||
| 34 | 34 | { |
| 35 | 35 | parent::boot(); |
| 36 | 36 | |
| 37 | - static::creating(function ($model) { |
|
| 37 | + static::creating(function($model) { |
|
| 38 | 38 | $model->{$model->getKeyName()} = Uuid::uuid4(); |
| 39 | 39 | }); |
| 40 | 40 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | Route::group([ |
| 53 | 53 | 'middleware' => 'web', |
| 54 | 54 | 'namespace' => $this->namespace, |
| 55 | - ], function ($router) { |
|
| 55 | + ], function($router) { |
|
| 56 | 56 | require base_path('routes/web.php'); |
| 57 | 57 | }); |
| 58 | 58 | } |
@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | 'middleware' => 'api', |
| 71 | 71 | 'namespace' => $this->namespace, |
| 72 | 72 | 'prefix' => 'api', |
| 73 | - ], function ($router) { |
|
| 73 | + ], function($router) { |
|
| 74 | 74 | require base_path('routes/api.php'); |
| 75 | 75 | }); |
| 76 | 76 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /* |
| 18 | 18 | * Authenticate the user's personal channel... |
| 19 | 19 | */ |
| 20 | - Broadcast::channel('App.User.*', function ($user, $userId) { |
|
| 20 | + Broadcast::channel('App.User.*', function($user, $userId) { |
|
| 21 | 21 | return (int) $user->id === (int) $userId; |
| 22 | 22 | }); |
| 23 | 23 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | protected function unauthenticated($request, AuthenticationException $exception) |
| 58 | 58 | { |
| 59 | 59 | if ($request->expectsJson()) { |
| 60 | - return response()->json(['error' => 'Unauthenticated.'], 401); |
|
| 60 | + return response()->json([ 'error' => 'Unauthenticated.' ], 401); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | return redirect()->guest('login'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('tokens', function (Blueprint $table) { |
|
| 16 | + Schema::create('tokens', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('token'); |
| 18 | 18 | $table->primary('token'); |
| 19 | 19 | $table->string('type'); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->uuid('id'); |
| 18 | 18 | $table->primary('id'); |
| 19 | 19 | $table->string('email')->index(); |
@@ -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 |
@@ -112,6 +112,6 @@ |
||
| 112 | 112 | | |
| 113 | 113 | */ |
| 114 | 114 | |
| 115 | - 'attributes' => [], |
|
| 115 | + 'attributes' => [ ], |
|
| 116 | 116 | |
| 117 | 117 | ]; |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | | |
| 110 | 110 | */ |
| 111 | 111 | |
| 112 | - 'lottery' => [2, 100], |
|
| 112 | + 'lottery' => [ 2, 100 ], |
|
| 113 | 113 | |
| 114 | 114 | /* |
| 115 | 115 | |-------------------------------------------------------------------------- |