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