Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
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 | 'BUILDABLE_SHIPS', |
||
27 | $this->shipRumpRepository->getBuildableByUserAndBuildingFunction( |
||
28 | $game->getUser()->getId(), |
||
29 | BuildingEnum::BUILDING_FUNCTION_FIGHTER_SHIPYARD |
||
30 | ) |
||
34 |