| Conditions | 4 |
| Paths | 3 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function Link($action = null) |
||
| 38 | { |
||
| 39 | $id = $this->element->ID; |
||
| 40 | $segment = Controller::join_links('element', $id, $action); |
||
| 41 | $page = Director::get_current_page(); |
||
|
|
|||
| 42 | |||
| 43 | if ($page && !($page instanceof ElementController)) { |
||
| 44 | return $page->Link($segment); |
||
| 45 | } |
||
| 46 | |||
| 47 | if ($controller = $this->getParentController()) { |
||
| 48 | return $controller->Link($segment); |
||
| 49 | } |
||
| 50 | |||
| 51 | return $segment; |
||
| 52 | } |
||
| 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