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