@@ -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 |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | public function getCookieName(): string |
185 | 185 | { |
186 | - return 'login_' . $this->name . '_' . sha1(static::class); |
|
186 | + return 'login_'.$this->name.'_'.sha1(static::class); |
|
187 | 187 | } |
188 | 188 | |
189 | 189 | /** |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | */ |
196 | 196 | public function getCookieJar(): CookieJar |
197 | 197 | { |
198 | - if (! isset($this->cookie)) { |
|
198 | + if ( ! isset($this->cookie)) { |
|
199 | 199 | throw new RuntimeException('Cookie jar has not been set.'); |
200 | 200 | } |
201 | 201 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | $validator->setAudience(config('app.url')); |
250 | 250 | $validator->setIssuer(config('app.url')); |
251 | 251 | |
252 | - if (! $token->validate($validator)) { |
|
252 | + if ( ! $token->validate($validator)) { |
|
253 | 253 | return false; |
254 | 254 | } |
255 | 255 | |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | |
322 | 322 | $token = (new Parser)->parse($jwt); |
323 | 323 | |
324 | - if (! $this->validateToken($token)) { |
|
324 | + if ( ! $this->validateToken($token)) { |
|
325 | 325 | return null; |
326 | 326 | } |
327 | 327 |