| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 1 | public function index(String $guid = null): array |
|
| 28 | { |
||
| 29 | 1 | $response = $this->client->get($this->buildPath($this->path . '?guid=' . $guid)); |
|
| 30 | 1 | $contents = $response->getBody()->getContents(); |
|
| 31 | 1 | $data = json_decode($contents, true); |
|
| 32 | |||
| 33 | 1 | $array = []; |
|
| 34 | 1 | foreach ($data['data'] as $object) { |
|
| 35 | 1 | $array[] = new Proposal($object); |
|
| 36 | } |
||
| 37 | |||
| 38 | 1 | return $array; |
|
| 39 | } |
||
| 87 | } |
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