Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.2098 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 1 | public function get(string $path) |
|
23 | { |
||
24 | 1 | $response = $this->client->request('GET', $path); |
|
25 | |||
26 | 1 | if ($response->getStatusCode() !== 200) { |
|
27 | throw new SleeperHttpException($response->getStatusCode()); |
||
28 | 1 | } elseif ($response->getBody() === 'null') { |
|
29 | throw new NullPointerException('The $var does not exist'); |
||
30 | } |
||
31 | |||
32 | 1 | return json_decode($response->getBody(), true); |
|
33 | } |
||
36 |
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