Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function setTemplateVariables( |
||
21 | PlanetFieldHostInterface $host, |
||
22 | GameControllerInterface $game |
||
23 | ): void { |
||
24 | |||
25 | $game->setTemplateVar( |
||
26 | 'STARTABLE_SHIPS', |
||
27 | $this->shipRumpRepository->getStartableByColony($host->getId()) |
||
28 | ); |
||
29 | $game->setTemplateVar( |
||
30 | 'BUILDABLE_SHIPS', |
||
31 | $this->shipRumpRepository->getBuildableByUserAndBuildingFunction( |
||
32 | $game->getUser()->getId(), |
||
33 | BuildingEnum::BUILDING_FUNCTION_AIRFIELD |
||
34 | ) |
||
38 |