Total Complexity | 8 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | class SitemapPage_Controller extends Page_Controller { |
||
12 | |||
13 | private static $allowed_actions = array( |
||
14 | 'showpage', |
||
15 | ); |
||
16 | |||
17 | private static $url_handlers = array( |
||
18 | 'page/$ID' => 'showpage', |
||
19 | ); |
||
20 | |||
21 | public function Page($link) { |
||
22 | if($link instanceof SS_HTTPRequest) { |
||
23 | Deprecation::notice('2.0', 'Using page() as a url handler is deprecated. Use showpage() action instead'); |
||
24 | return $this->showpage($link); |
||
25 | } |
||
26 | return parent::Page($link); |
||
27 | } |
||
28 | |||
29 | public function showpage($request) { |
||
56 | } |
||
57 | } |
||
60 |
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