Conditions | 3 |
Paths | 3 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
17 | protected function isSanityCheckFaultyConcrete(ShipWrapperInterface $wrapper, GameControllerInterface $game): bool |
||
18 | { |
||
19 | $ship = $wrapper->get(); |
||
20 | |||
21 | $starsystemMap = $ship->getStarsystemMap(); |
||
22 | if ($starsystemMap === null) { |
||
23 | return true; |
||
24 | } |
||
25 | |||
26 | //the destination map field |
||
27 | $outerMap = $starsystemMap->getSystem()->getMapField(); |
||
28 | if ($outerMap === null) { |
||
29 | return true; |
||
30 | } |
||
31 | |||
32 | return false; |
||
33 | } |
||
53 |