bugfix/MAPG-203-fix-singleplayer #9

Merged
bence merged 2 commits from bugfix/MAPG-203-fix-singleplayer into develop 2021-03-20 21:00:14 +01:00
Showing only changes of commit c2f0a1dd51 - Show all commits

View File

@ -72,14 +72,14 @@ class GameController
); );
} }
public function getMultiGame() public function getMultiGame(): IContent
{ {
$roomId = $this->request->query('roomId'); $roomId = $this->request->query('roomId');
return new HtmlContent('game', ['roomId' => $roomId]); return new HtmlContent('game', ['roomId' => $roomId]);
} }
public function prepareGame(int $mapId): IContent public function prepareGame(): IContent
{ {
$mapId = (int) $this->request->query('mapId'); $mapId = (int) $this->request->query('mapId');
$map = $this->mapRepository->getById($mapId); $map = $this->mapRepository->getById($mapId);
@ -146,7 +146,7 @@ class GameController
]); ]);
} }
private function getMultiToken(string $roomId, bool $forceNew = false) private function getMultiToken(string $roomId): string
{ {
$session = $this->request->session(); $session = $this->request->session();