| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class EnergyWeaponSystemData extends AbstractSystemData |
||
| 11 | { |
||
| 12 | public int $baseDamage = 0; |
||
| 13 | |||
| 14 | #[Override] |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * proportional to energy weapon system status |
||
| 22 | */ |
||
| 23 | 2 | public function getBaseDamage(): int |
|
| 24 | { |
||
| 25 | 2 | return (int) (ceil($this->baseDamage |
|
| 26 | 2 | * $this->spacecraft->getSpacecraftSystem(SpacecraftSystemTypeEnum::PHASER)->getStatus() / 100)); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function setBaseDamage(int $baseDamage): EnergyWeaponSystemData |
|
| 33 | } |
||
| 34 | } |
||
| 35 |
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