@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function up() |
| 36 | 36 | { |
| 37 | - Schema::create($this->table, function (Blueprint $table) { |
|
| 37 | + Schema::create($this->table, function(Blueprint $table) { |
|
| 38 | 38 | $table->increments('id'); |
| 39 | 39 | $table->integer($this->foreignKey)->unsigned(); |
| 40 | 40 | $table->string('token')->index(); |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | */ |
| 184 | 184 | protected function hasValidCredentials($user, $credentials) |
| 185 | 185 | { |
| 186 | - return ! is_null($user) && $this->provider->validateCredentials($user, $credentials); |
|
| 186 | + return !is_null($user) && $this->provider->validateCredentials($user, $credentials); |
|
| 187 | 187 | } |
| 188 | 188 | |
| 189 | 189 | /** |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | if (empty($this->jti)) { |
| 64 | - $this->jti = md5("{$this->sub}.{$this->iat}." . rand(1000, 1999)); |
|
| 64 | + $this->jti = md5("{$this->sub}.{$this->iat}.".rand(1000, 1999)); |
|
| 65 | 65 | } |
| 66 | 66 | } |
| 67 | 67 | |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | private function publishConfig() |
| 43 | 43 | { |
| 44 | - $configFile = __DIR__ . '/../config/jwt.php'; |
|
| 44 | + $configFile = __DIR__.'/../config/jwt.php'; |
|
| 45 | 45 | |
| 46 | 46 | $this->publishes([ |
| 47 | 47 | $configFile => config_path('jwt.php') |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | private function publishMigration() |
| 57 | 57 | { |
| 58 | 58 | $this->publishes([ |
| 59 | - __DIR__ . '/../database/migrations/' => database_path('migrations') |
|
| 59 | + __DIR__.'/../database/migrations/' => database_path('migrations') |
|
| 60 | 60 | ], 'migrations'); |
| 61 | 61 | } |
| 62 | 62 | |
@@ -67,8 +67,8 @@ discard block |
||
| 67 | 67 | { |
| 68 | 68 | $this->app->bind(TokenManagerContract::class, TokenManager::class); |
| 69 | 69 | |
| 70 | - $this->app->rebinding('request', function ($app, $request) { |
|
| 71 | - $request->setUserResolver(function ($guard = null) { |
|
| 70 | + $this->app->rebinding('request', function($app, $request) { |
|
| 71 | + $request->setUserResolver(function($guard = null) { |
|
| 72 | 72 | return auth()->guard($guard)->user(); |
| 73 | 73 | }); |
| 74 | 74 | }); |