@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | /** |
104 | 104 | * Retrieve the user by the given payload. |
105 | 105 | * |
106 | - * @param Tymon\JWTAuth\Payload $payload |
|
106 | + * @param Payload $payload |
|
107 | 107 | * @return Illuminate\Contracts\Auth\Authenticatable |
108 | 108 | */ |
109 | 109 | protected function getUserByPayload(Payload $payload) |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | * Determine whether the user has a token attached. |
129 | 129 | * |
130 | 130 | * @param \Illuminate\Contracts\Auth\Authenticatable $user |
131 | - * @param Tymon\JWTAuth\Payload $payload |
|
131 | + * @param Payload $payload |
|
132 | 132 | * @return boolean |
133 | 133 | */ |
134 | 134 | protected function userHasToken($user, Payload $payload) |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | /** |
355 | 355 | * getToken method |
356 | 356 | * |
357 | - * @return null|string |
|
357 | + * @return string |
|
358 | 358 | */ |
359 | 359 | public function getToken() |
360 | 360 | { |
@@ -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 | /** |
@@ -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(); |
@@ -66,8 +66,8 @@ |
||
66 | 66 | |
67 | 67 | $this->app->bind(TokenManagerContract::class, TokenManager::class); |
68 | 68 | |
69 | - $this->app->rebinding('request', function ($app, $request) { |
|
70 | - $request->setUserResolver(function ($guard = null) { |
|
69 | + $this->app->rebinding('request', function($app, $request) { |
|
70 | + $request->setUserResolver(function($guard = null) { |
|
71 | 71 | return auth()->guard($guard)->user(); |
72 | 72 | }); |
73 | 73 | }); |