| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | public function handleShipDestruction( |
||
| 21 | ?ShipDestroyerInterface $destroyer, |
||
| 22 | ShipWrapperInterface $destroyedShipWrapper, |
||
| 23 | ShipDestructionCauseEnum $cause, |
||
| 24 | InformationInterface $informations |
||
| 25 | ): void { |
||
| 26 | |||
| 27 | foreach ($destroyedShipWrapper->get()->getStorage() as $storage) { |
||
| 28 | $storage->setUser($this->userRepository->getFallbackUser()); |
||
| 29 | $this->storageRepository->save($storage); |
||
| 30 | } |
||
| 33 |