Passed
Branch master (a32ae4)
by Charles
04:21
created
actions/AuthenticationAction.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -53,25 +53,25 @@
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-    * Retrieves a Token object from an access token string
57
-    * @param string $accessToken
58
-    * @return \yrc\models\redis\Token
59
-    */
60
-   private function getTokenFromAccessToken(string $accessToken)
61
-   {
62
-       try {
63
-           $tokenClass = (Yii::$app->user->identityClass::TOKEN_CLASS);
64
-           $token = $tokenClass::find()
65
-               ->where(['access_token' => $accessToken])
66
-               ->one();
67
-       } catch (\Exception $e) {
68
-           return null;
69
-       }
56
+     * Retrieves a Token object from an access token string
57
+     * @param string $accessToken
58
+     * @return \yrc\models\redis\Token
59
+     */
60
+    private function getTokenFromAccessToken(string $accessToken)
61
+    {
62
+        try {
63
+            $tokenClass = (Yii::$app->user->identityClass::TOKEN_CLASS);
64
+            $token = $tokenClass::find()
65
+                ->where(['access_token' => $accessToken])
66
+                ->one();
67
+        } catch (\Exception $e) {
68
+            return null;
69
+        }
70 70
 
71
-       if ($token === null || $token->isExpired()) {
72
-           return null;
73
-       }
71
+        if ($token === null || $token->isExpired()) {
72
+            return null;
73
+        }
74 74
 
75
-       return $token;
76
-   }
75
+        return $token;
76
+    }
77 77
 }
Please login to merge, or discard this patch.