| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 61.53% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | final class ModuleRumpWrapperComputer extends ModuleRumpWrapperBase implements ModuleRumpWrapperInterface |
||
| 14 | { |
||
| 15 | 3 | #[Override] |
|
| 16 | public function getValue(?ModuleInterface $module = null): int |
||
| 17 | { |
||
| 18 | 3 | $module ??= current($this->getModule()); |
|
| 19 | 3 | if ($module === false) { |
|
| 20 | return 0; |
||
| 21 | } |
||
| 22 | |||
| 23 | 3 | return (new ModuleValueCalculator())->calculateModuleValue( |
|
| 24 | 3 | $this->rump, |
|
| 25 | 3 | $module, |
|
| 26 | 3 | $this->rump->getHitChance() |
|
| 27 | 3 | ); |
|
| 28 | } |
||
| 29 | |||
| 30 | #[Override] |
||
| 31 | public function getModuleType(): SpacecraftModuleTypeEnum |
||
| 32 | { |
||
| 33 | return SpacecraftModuleTypeEnum::COMPUTER; |
||
| 34 | } |
||
| 35 | |||
| 36 | #[Override] |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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