| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function handle(GameControllerInterface $game): void |
||
| 24 | { |
||
| 25 | |||
| 26 | $commodityList = $this->commodityRepository->getTradeableNPC(); |
||
| 27 | |||
| 28 | $game->setTemplateFile('html/npc/tools.twig'); |
||
| 29 | $game->appendNavigationPart('/npc/?SHOW_TOOLS=1', _('Tools')); |
||
| 30 | $game->setPageTitle(_('Tools')); |
||
| 31 | $game->setTemplateVar('SELECTABLE_COMMODITIES', $commodityList); |
||
| 32 | } |
||
| 34 |