Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function getCalculatedAnswer(): array |
||
13 | { |
||
14 | $array = []; |
||
15 | $pages = ErrorPage::get()->filter(['ErrorCode' => $this->Config()->get('error_code')]); |
||
16 | foreach ($pages as $page) { |
||
17 | $array[$page->ID] = [ |
||
18 | 'Title' => $page->Title, |
||
19 | 'CMSEditLink' => $page->CMSEditLink(), |
||
20 | 'Link' => $page->Link(), |
||
21 | 'IsPublished' => $page->IsPublished(), |
||
22 | 'HtmlPageExists' => $this->htmlPageExists(), |
||
23 | 'HtmlLink' => $this->htmlLink(), |
||
24 | ]; |
||
25 | } |
||
26 | |||
27 | return $array; |
||
28 | } |
||
47 |
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