Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
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 | $tractoredShip = $wrapper->get()->getTractoredShip(); |
|
30 | 2 | if ($tractoredShip === null) { |
|
31 | 1 | return; |
|
32 | } |
||
33 | |||
34 | //check for tractor system health |
||
35 | 1 | $this->tractorMassPayloadUtil->stressTractorSystemForTowing( |
|
36 | 1 | $wrapper, |
|
37 | 1 | $tractoredShip, |
|
38 | 1 | $messages |
|
39 | 1 | ); |
|
42 |