Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | 2 | public function check( |
|
14 | ShipWrapperInterface $wrapper, |
||
15 | FlightRouteInterface $flightRoute, |
||
16 | ConditionCheckResult $conditionCheckResult |
||
17 | ): void { |
||
18 | 2 | $ship = $wrapper->get(); |
|
19 | |||
20 | 2 | if (!$ship->hasEnoughCrew()) { |
|
21 | 1 | $conditionCheckResult->addBlockedShip( |
|
22 | 1 | $ship, |
|
23 | 1 | sprintf( |
|
24 | 1 | 'Die %s hat ungenügend Crew', |
|
25 | 1 | $ship->getName() |
|
26 | 1 | ) |
|
31 |