| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class ModuleList implements ArgumentInterface, HyvaGridArrayProviderInterface |
||
| 10 | { |
||
| 11 | private $moduleListInterface; |
||
| 12 | |||
| 13 | public function __construct(ModuleListInterface $moduleListInterface) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function getModuleList() |
||
| 19 | { |
||
| 20 | $n = 1; |
||
| 21 | return array_map(function($module) use(&$n) { |
||
| 22 | unset($module['sequence']); |
||
| 23 | $module['type'] = (strpos($module['name'], 'Magento_') !== false) ? |
||
| 24 | 'Core' : 'External'; |
||
| 25 | return ['load order' => $n++] + $module; |
||
| 26 | }, $this->moduleListInterface->getAll()); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array[] |
||
| 31 | */ |
||
| 32 | public function getHyvaGridData(): array { |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
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