| Conditions | 4 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function execute(SimpleXMLElement $softDependenciesXml) |
||
| 24 | { |
||
| 25 | |||
| 26 | $path = $this->componentRegistrar->getPaths(ComponentRegistrar::MODULE); |
||
| 27 | |||
| 28 | $softDependencies = [[]]; |
||
| 29 | |||
| 30 | if (isset($softDependenciesXml->module->sequence)) { |
||
| 31 | return $softDependencies; |
||
| 32 | } |
||
| 33 | |||
| 34 | foreach ($softDependenciesXml->module->sequence->module as $module) { |
||
| 35 | $moduleName = (string)$module->attributes()->name; |
||
| 36 | if (\array_key_exists($moduleName, $path)) { |
||
| 37 | $composerFilePath = preg_replace('/\/src$/', '', $path[$moduleName]); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | return array_merge(...$softDependencies); |
||
| 42 | } |
||
| 44 |
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