Conditions | 4 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | protected function init() |
||
12 | { |
||
13 | parent::init(); |
||
14 | $currentProtocol = Director::protocol(); |
||
15 | $desiredProtocol = $this->ForceProtocol; |
||
16 | if ($desiredProtocol && $currentProtocol !== $desiredProtocol) { |
||
17 | $enforcedLocation = preg_replace( |
||
18 | "#^${currentProtocol}#", |
||
19 | $desiredProtocol, |
||
20 | $this->AbsoluteLink() |
||
21 | ); |
||
22 | return $this->redirect($enforcedLocation); |
||
23 | } |
||
24 | |||
25 | if ($this->IFrameURL) { |
||
26 | Requirements::javascript('silverstripe/iframe: javascript/iframe_page.js'); |
||
27 | } |
||
30 |
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