| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function handle(GameControllerInterface $game): void |
||
| 15 | { |
||
| 16 | $game->setPageTitle(_('Neue Sandbox erstellen')); |
||
| 17 | $game->setMacroInAjaxWindow('html/admin/sandbox/newSandbox.twig'); |
||
| 18 | |||
| 19 | $game->setTemplateVar('SANDBOX_LIST', $game->getUser()->getColonies()->toArray()); |
||
| 20 | $game->setTemplateVar('SANDBOX_NAME', sprintf('SANDBOX %s', date('d M Y'))); |
||
| 21 | } |
||
| 23 |