| Conditions | 3 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function fixPackage($pkg) |
||
| 25 | { |
||
| 26 | $pkg->spk_url = $this->urlPrefix . $pkg->spk; |
||
| 27 | |||
| 28 | // Make absolute URLs from relative ones |
||
| 29 | $thumbnail_url = array(); |
||
| 30 | foreach ($pkg->thumbnail as $i => $t) { |
||
| 31 | $thumbnail_url[$i] = $this->urlPrefix . $t; |
||
| 32 | } |
||
| 33 | $pkg->thumbnail_url = $thumbnail_url; |
||
| 34 | |||
| 35 | $snapshot_url = array(); |
||
| 36 | foreach ($pkg->snapshot as $i => $s) { |
||
| 37 | $snapshot_url[$i] = $this->urlPrefix . $s; |
||
| 38 | } |
||
| 39 | $pkg->snapshot_url = $snapshot_url; |
||
| 40 | } |
||
| 54 |
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