| Conditions | 4 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 56 | public function setTargetUrl($url) |
|
| 29 | { |
||
| 30 | 56 | if ( !str_starts_with($url, "/") |
|
| 31 | 56 | && !preg_match('|^https?://|', $url)) { |
|
| 32 | 29 | $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX) ?: '/'; |
|
| 33 | 29 | $url = $prefix . $url; |
|
| 34 | 29 | debug_add("This is a relative URL from the local site, prepending anchor prefix: {$url}"); |
|
| 35 | } |
||
| 36 | 56 | return parent::setTargetUrl($url); |
|
| 37 | } |
||
| 50 |
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