Total Complexity | 4 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
15 | class SubsiteAdmin extends ModelAdmin |
||
16 | { |
||
17 | private static $managed_models = [Subsite::class]; |
||
18 | |||
19 | private static $url_segment = 'subsites'; |
||
20 | |||
21 | private static $menu_title = 'Subsites'; |
||
22 | |||
23 | private static $menu_icon = MaterialIcons::ACCOUNT_TREE; |
||
24 | |||
25 | public $showImportForm = false; |
||
26 | |||
27 | private static $tree_class = Subsite::class; |
||
28 | |||
29 | private static $required_permission_codes = "CMS_ACCESS_SilverStripe\Subsites\Admin\SubsiteAdmin"; // inherit SS permissions |
||
30 | |||
31 | public function canView($member = null) |
||
32 | { |
||
33 | if (!class_exists(SubsiteState::class)) { |
||
34 | return false; |
||
35 | } |
||
36 | return parent::canView($member); |
||
37 | } |
||
38 | |||
39 | public function getEditForm($id = null, $fields = null) |
||
49 | } |
||
50 | } |
||
51 |
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