@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | // Register the JWT driver with Laravel |
| 14 | 14 | $auth = $this->app->make(AuthManager::class); |
| 15 | - $auth->extend('jwt', function (Application $app, string $name, array $config) use ($auth) { |
|
| 15 | + $auth->extend('jwt', function(Application $app, string $name, array $config) use ($auth) { |
|
| 16 | 16 | $guard = new JWTGuard($auth->createUserProvider($config['provider'] ?? null), $name, $config); |
| 17 | 17 | $guard |
| 18 | 18 | // Set the request instance on the guard |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | public function getCookieName(): string |
| 187 | 187 | { |
| 188 | - return 'login_' . $this->name . '_' . sha1(static::class); |
|
| 188 | + return 'login_'.$this->name.'_'.sha1(static::class); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | /** |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | */ |
| 198 | 198 | public function getCookieJar(): CookieJar |
| 199 | 199 | { |
| 200 | - if (! isset($this->cookie)) { |
|
| 200 | + if ( ! isset($this->cookie)) { |
|
| 201 | 201 | throw new RuntimeException('Cookie jar has not been set.'); |
| 202 | 202 | } |
| 203 | 203 | |
@@ -280,7 +280,7 @@ discard block |
||
| 280 | 280 | $validator->setAudience(config('app.url')); |
| 281 | 281 | $validator->setIssuer(config('app.url')); |
| 282 | 282 | |
| 283 | - if (! $token->validate($validator)) { |
|
| 283 | + if ( ! $token->validate($validator)) { |
|
| 284 | 284 | return false; |
| 285 | 285 | } |
| 286 | 286 | |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | |
| 358 | 358 | $token = (new Parser)->parse($jwt); |
| 359 | 359 | |
| 360 | - if (! $this->validateToken($token)) { |
|
| 360 | + if ( ! $this->validateToken($token)) { |
|
| 361 | 361 | return null; |
| 362 | 362 | } |
| 363 | 363 | |