| Total Complexity | 6 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 7.14% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | abstract class ModuleRumpWrapperBase implements ModuleRumpWrapperInterface |
||
| 16 | { |
||
| 17 | /** @var null|array<int, ModuleInterface> */ |
||
| 18 | private ?array $modules = null; |
||
| 19 | |||
| 20 | 3 | public function __construct(protected SpacecraftRumpInterface $rump, private ?SpacecraftBuildplanInterface $buildplan) {} |
|
| 21 | |||
| 22 | abstract public function getModuleType(): SpacecraftModuleTypeEnum; |
||
| 23 | |||
| 24 | #[Override] |
||
| 25 | public function getModule(): iterable |
||
| 26 | { |
||
| 27 | if ($this->modules === null) { |
||
| 28 | $buildplan = $this->buildplan; |
||
| 29 | if ($buildplan === null) { |
||
| 30 | $this->modules = []; |
||
| 31 | } else { |
||
| 32 | $this->modules = $buildplan |
||
| 33 | ->getModulesByType($this->getModuleType()) |
||
| 34 | ->toArray(); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | return $this->modules; |
||
| 39 | } |
||
| 40 | |||
| 41 | #[Override] |
||
| 42 | public function getSecondValue(?ModuleInterface $module = null): int |
||
| 43 | { |
||
| 44 | throw new RuntimeException(sprintf('not implemented for moduleType: %s', $this->getModuleType()->name)); |
||
| 45 | } |
||
| 46 | |||
| 47 | #[Override] |
||
| 52 | } |
||
| 53 | } |
||
| 54 |
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