MAPG-235 refactored whitespaces

This commit is contained in:
balazs committed 2021-05-22 21:17:49 +02:00
1 parent 567602c749
commit 7970927654
6 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -208,7 +208,7 @@ class GameController implements ISecured
$room = $this->multiRoomRepository->getByRoomId($roomId);
if(!isset($room)) {
if (!isset($room)) {
return new JsonContent(['error' => 'game_not_found']);
}
@@ -265,7 +265,7 @@ class GameController implements ISecured
return new JsonContent(['error' => 'game_not_found']);
}
if(!$this->userInChallengeRepository->isUserParticipatingInChallenge($userId, $challenge)) {
if (!$this->userInChallengeRepository->isUserParticipatingInChallenge($userId, $challenge)) {
// new player is joining
$userInChallenge = new UserInChallenge();
$userInChallenge->setUserId($userId);
+3 -3
View File
@@ -309,9 +309,9 @@ class GameFlowController implements ISecured
$session = $this->request->session();
$userId = $session->get('userId');
if(isset($userId)) {
if (isset($userId)) {
$userPlayedPlace = $this->userPlayedPlaceRepository->getByUserIdAndPlaceId($userId, $placeId);
if(!$userPlayedPlace) {
if (!$userPlayedPlace) {
$userPlayedPlace = new UserPlayedPlace();
$userPlayedPlace->setUserId($userId);
$userPlayedPlace->setPlaceId($placeId);
@@ -415,7 +415,7 @@ class GameFlowController implements ISecured
$response['restrictions']['timeLimit'] = $timeLimit * 1000;
}
if(isset($response['history'][$currentRound]['allResults'])) {
if (isset($response['history'][$currentRound]['allResults'])) {
$response['allResults'] = $response['history'][$currentRound]['allResults'];
}