| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function action(FleetWrapperInterface $fleet, PirateReactionInterface $pirateReaction): void |
||
| 28 | { |
||
| 29 | $leadWrapper = $fleet->getLeadWrapper(); |
||
| 30 | $leadShip = $leadWrapper->get(); |
||
| 31 | |||
| 32 | $supportFleet = $this->pirateCreation->createPirateFleet($leadShip); |
||
| 33 | |||
| 34 | $this->logger->logf('created support fleet "%s" here %s', $supportFleet->getName(), $supportFleet->getLeadShip()->getSectorString()); |
||
| 35 | |||
| 36 | $pirateReaction->react( |
||
| 37 | $supportFleet, |
||
| 38 | PirateReactionTriggerEnum::ON_SUPPORT_CALL |
||
| 39 | ); |
||
| 42 |