| Conditions | 4 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 20 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function reload(FleetWrapperInterface $fleetWrapper): void |
||
| 11 | { |
||
| 12 | foreach ($fleetWrapper->getShipWrappers() as $wrapper) { |
||
| 13 | $epsSystem = $wrapper->getEpsSystemData(); |
||
| 14 | |||
| 15 | if ( |
||
| 16 | $epsSystem !== null |
||
| 17 | && $epsSystem->getEpsPercentage() < 20 |
||
| 18 | ) { |
||
| 19 | $epsSystem->setEps((int)($epsSystem->getMaxEps() * 0.2))->update(); |
||
| 20 | } |
||
| 24 |