Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | 16 | public function get(string $path) |
|
23 | { |
||
24 | 16 | $response = $this->client->request('GET', $path); |
|
25 | |||
26 | 15 | if ($response->getStatusCode() !== 200) { |
|
27 | 1 | throw new \Exception('Client error: `GET '. $path .'` resulted in a '. $response->getStatusCode() .' response'); |
|
28 | 14 | } elseif ($response->getBody()->getSize() === 0) { |
|
29 | 1 | throw new \Exception('Client error: `GET '. $path .'` resulted in a empty response body'); |
|
30 | } |
||
31 | |||
32 | 13 | 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