Total Complexity | 2 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class CKANRegistryPage extends Page |
||
15 | { |
||
16 | private static $table_name = 'CKANRegistryPage'; |
||
17 | |||
18 | private static $db = [ |
||
19 | 'ItemsPerPage' => 'Int', |
||
20 | ]; |
||
21 | |||
22 | private static $defaults = [ |
||
23 | 'ItemsPerPage' => 20, |
||
24 | ]; |
||
25 | |||
26 | private static $singular_name = 'CKAN Registry Page'; |
||
27 | |||
28 | private static $plural_name = 'CKAN Registry Pages'; |
||
29 | |||
30 | public function getCMSFields() |
||
31 | { |
||
32 | $this->beforeUpdateCMSFields(function (FieldList $fields) { |
||
33 | $fields->addFieldToTab('Root.Data', ResourceLocatorField::create('Thing')); |
||
34 | }); |
||
35 | |||
36 | return parent::getCMSFields(); |
||
37 | } |
||
38 | |||
39 | public function getSettingsFields() |
||
48 | } |
||
49 | } |
||
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