Passed
Push — develop ( 4df2aa...e4d97d )
by Ollie
03:07 queued 10s
created
src/JWTGuard.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/JWTServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
     {
14 14
         // Register the JWT driver with Laravel
15 15
         $auth = $this->app->make(AuthManager::class);
16
-        $auth->extend('jwt', function (Application $app, string $name, array $config) use ($auth) {
16
+        $auth->extend('jwt', function(Application $app, string $name, array $config) use ($auth) {
17 17
             $provider = $auth->createUserProvider($config['provider'] ?? null);
18 18
 
19 19
             if ($provider === null) {
Please login to merge, or discard this patch.