| Conditions | 3 |
| Paths | 3 |
| Total Lines | 26 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public static function getUser() |
||
| 31 | { |
||
| 32 | $token = (new self)->getToken(); |
||
| 33 | |||
| 34 | if(!$token) { |
||
| 35 | return null; |
||
| 36 | } |
||
| 37 | |||
| 38 | $client = new Client(); |
||
| 39 | $headers = [ |
||
| 40 | 'Authorization' => 'Bearer ' . $token, |
||
| 41 | 'Accept' => 'application/json', |
||
| 42 | ]; |
||
| 43 | $res = $client->request('GET', 'http://user_management_nginx_1/user/checkToken', |
||
| 44 | [ |
||
| 45 | 'headers' => $headers, |
||
| 46 | 'exceptions' => false |
||
| 47 | ] |
||
| 48 | ); |
||
| 49 | $httpCode = $res->getStatusCode(); |
||
| 50 | if($httpCode!=200) |
||
| 51 | { |
||
| 52 | return null; |
||
| 53 | } |
||
| 54 | |||
| 55 | return json_decode($res->getBody(),1); |
||
| 56 | } |
||
| 76 | } |
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