| Conditions | 4 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 | } |
||
| 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