Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | 2 | protected function triggerSpecific( |
|
24 | ShipWrapperInterface $wrapper, |
||
25 | FlightRouteInterface $flightRoute, |
||
26 | MessageCollectionInterface $messages |
||
27 | ): void { |
||
28 | |||
29 | 2 | $ship = $wrapper->get(); |
|
30 | |||
31 | 2 | if ($ship->isUnderRepair()) { |
|
32 | 1 | $message = new Message(null, $ship->getUser()->getId()); |
|
33 | 1 | $messages->add($message); |
|
34 | 1 | $this->cancelRepair->cancelRepair($ship); |
|
35 | 1 | $message->add(sprintf(_('Die Reparatur der %s wurde abgebrochen'), $ship->getName())); |
|
36 | } |
||
39 |