| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function setTemplateVariables(GameControllerInterface $game): void |
||
| 27 | { |
||
| 28 | $userId = $game->getUser()->getId(); |
||
| 29 | |||
| 30 | $bases = $this->shipRepository->getByUserAndFleetAndType($userId, null, SpacecraftTypeEnum::SPACECRAFT_TYPE_STATION); |
||
| 31 | $uplinkBases = $this->shipRepository->getByUplink($userId); |
||
| 32 | |||
| 33 | $game->setTemplateVar( |
||
| 34 | 'BASES', |
||
| 35 | $this->shipWrapperFactory->wrapShips(array_merge($bases, $uplinkBases)) |
||
| 36 | ); |
||
| 39 |