| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | public function handle(FallbackRouteException $e, GameControllerInterface $game): void |
||
| 12 | { |
||
| 13 | $game->setTemplateFile('html/index/accountLocked.twig'); |
||
| 14 | $game->setTemplateVar('LOGIN_ERROR', $e->getMessage()); |
||
| 15 | |||
| 16 | if ($e instanceof UserLockedException) { |
||
| 17 | $game->setTemplateVar('REASON', $e->getDetails()); |
||
| 18 | } |
||
| 21 |