| Total Complexity | 7 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class ModuleRumpWrapperReactor extends ModuleRumpWrapperBase implements ModuleRumpWrapperInterface |
||
| 16 | { |
||
| 17 | #[Override] |
||
| 18 | public function getValue(?ModuleInterface $module = null): int |
||
| 19 | { |
||
| 20 | $module ??= current($this->getModule()); |
||
| 21 | if ($module === false) { |
||
| 22 | return 0; |
||
| 23 | } |
||
| 24 | |||
| 25 | return (new ModuleValueCalculator())->calculateModuleValue( |
||
| 26 | $this->rump, |
||
| 27 | $module, |
||
| 28 | $this->rump->getBaseReactor() |
||
| 29 | ); |
||
| 30 | } |
||
| 31 | |||
| 32 | #[Override] |
||
| 33 | public function getSecondValue(?ModuleInterface $module = null): ?int |
||
| 34 | { |
||
| 35 | $module ??= current($this->getModule()); |
||
| 36 | if ($module === false) { |
||
| 37 | return null; |
||
| 38 | } |
||
| 39 | return $this->getValue($module) * ReactorWrapperInterface::WARPCORE_CAPACITY_MULTIPLIER; |
||
| 40 | } |
||
| 41 | |||
| 42 | #[Override] |
||
| 43 | public function getModuleType(): ShipModuleTypeEnum |
||
| 44 | { |
||
| 45 | return ShipModuleTypeEnum::REACTOR; |
||
| 46 | } |
||
| 47 | |||
| 48 | #[Override] |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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