Conditions | 6 |
Paths | 5 |
Total Lines | 32 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | return false; |
||
53 | } |
||
54 | |||
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 | } |
||
70 | |||
71 | if ($token === null || $token->isExpired()) { |
||
72 | return null; |
||
73 | } |
||
74 | |||
75 | return $token; |
||
76 | } |
||
77 | } |
||
78 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths