Conditions | 3 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function getCMSFields() |
||
27 | { |
||
28 | $fields = parent::getCMSFields(); |
||
29 | |||
30 | if ($relations = ClassInfo::subclassesFor(ProductDoc::class)) { |
||
31 | unset($relations[ProductDoc::class]); |
||
32 | foreach ($relations as $key => $value) { |
||
33 | $relations[$key] = singleton($value)->i18n_singular_name(); |
||
34 | } |
||
35 | |||
36 | $fields->addFieldToTab( |
||
37 | 'Root.Main', |
||
38 | DropdownField::create('ManagedClass', 'Files to display', $relations) |
||
39 | ->setEmptyString(''), |
||
40 | 'Content' |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | return $fields; |
||
45 | } |
||
47 |
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