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