| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | protected function doRequest($url, array $data = null) |
||
| 25 | { |
||
| 26 | $options = []; |
||
| 27 | if ($data) { |
||
| 28 | $method = 'POST'; |
||
| 29 | $options['body'] = $data; |
||
| 30 | } else { |
||
| 31 | $method = 'GET'; |
||
| 32 | } |
||
| 33 | |||
| 34 | $response = $this->http->request($method, $url, $options); |
||
| 35 | |||
| 36 | try { |
||
| 37 | return $response->toArray(); |
||
| 38 | } catch (ExceptionInterface $exception) { |
||
| 39 | throw new HttpException($exception->getMessage(), $exception->getCode(), $exception); |
||
| 40 | } |
||
| 55 |
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