Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function handle(GameControllerInterface $game): void |
||
32 | { |
||
33 | $this->helper->setWarpSplitFleet(request::indInt('id'), $game); |
||
34 | |||
35 | $userId = $game->getUser()->getId(); |
||
36 | |||
37 | $ship = $this->shipLoader->getByIdAndUser( |
||
38 | request::indInt('id'), |
||
39 | $userId |
||
40 | ); |
||
41 | |||
42 | if ($ship->isDestroyed()) { |
||
43 | return; |
||
44 | } |
||
45 | |||
46 | $game->setView(ShowShip::VIEW_IDENTIFIER); |
||
47 | } |
||
54 |