| Conditions | 4 |
| Paths | 8 |
| Total Lines | 33 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 24 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | 3 | public function check( |
|
| 23 | ShipWrapperInterface $wrapper, |
||
| 24 | FlightRouteInterface $flightRoute, |
||
| 25 | ConditionCheckResult $conditionCheckResult |
||
| 26 | ): void { |
||
| 27 | |||
| 28 | 3 | if ($flightRoute->isImpulseDriveNeeded()) { |
|
| 29 | 1 | $this->activatorDeactivatorHelper->activate( |
|
| 30 | 1 | $wrapper, |
|
| 31 | 1 | ShipSystemTypeEnum::SYSTEM_IMPULSEDRIVE, |
|
| 32 | 1 | $conditionCheckResult, |
|
| 33 | 1 | false, |
|
| 34 | 1 | true |
|
| 35 | 1 | ); |
|
| 36 | } |
||
| 37 | |||
| 38 | 3 | if ($flightRoute->isWarpDriveNeeded()) { |
|
| 39 | 1 | $this->activatorDeactivatorHelper->activate( |
|
| 40 | 1 | $wrapper, |
|
| 41 | 1 | ShipSystemTypeEnum::SYSTEM_WARPDRIVE, |
|
| 42 | 1 | $conditionCheckResult, |
|
| 43 | 1 | false, |
|
| 44 | 1 | true |
|
| 45 | 1 | ); |
|
| 46 | } |
||
| 47 | |||
| 48 | 3 | if ($flightRoute->isTranswarpCoilNeeded()) { |
|
| 49 | 1 | $this->activatorDeactivatorHelper->activate( |
|
| 50 | 1 | $wrapper, |
|
| 51 | 1 | ShipSystemTypeEnum::SYSTEM_TRANSWARP_COIL, |
|
| 52 | 1 | $conditionCheckResult, |
|
| 53 | 1 | false, |
|
| 54 | 1 | true |
|
| 55 | 1 | ); |
|
| 59 |