| Conditions | 3 |
| Paths | 4 |
| Total Lines | 23 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 34 | public function searchAction($search) { |
||
| 35 | |||
| 36 | $url = $this->gndHost . $this->searchUrl . $search; |
||
| 37 | $content = file_get_contents($url); |
||
| 38 | $json = json_decode($content); |
||
| 39 | |||
| 40 | |||
| 41 | $listArray = array(); |
||
| 42 | $i = 0; |
||
| 43 | foreach ($json as $value) { |
||
| 44 | $listArray[$i]['value'] = $value->label; |
||
| 45 | $listArray[$i]['label'] = htmlentities($value->label); |
||
| 46 | $listArray[$i]['gnd'] = $value->id; |
||
| 47 | $i++; |
||
| 48 | } |
||
| 49 | |||
| 50 | if (empty($listArray)) { |
||
| 51 | echo json_encode(null); |
||
| 52 | } else { |
||
| 53 | echo json_encode($listArray); |
||
| 54 | } |
||
| 55 | |||
| 56 | return ''; |
||
| 57 | } |
||
| 59 | } |
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