@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | public function index($gameId) |
60 | 60 | { |
61 | 61 | $game = $this->getDoctrine() |
62 | - ->getRepository(Game::class) |
|
63 | - ->find($gameId) |
|
62 | + ->getRepository(Game::class) |
|
63 | + ->find($gameId) |
|
64 | 64 | ; |
65 | 65 | |
66 | 66 | if (!$game) { |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | $entityManager = $this->getDoctrine()->getManager(); |
101 | 101 | |
102 | 102 | $userBetting = $entityManager->getRepository(UserBettingEntity::class) |
103 | - ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId()) |
|
103 | + ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId()) |
|
104 | 104 | ; |
105 | 105 | if (!$userBetting instanceof UserBettingEntity) { |
106 | 106 | $userBetting = new UserBettingEntity(); |
107 | 107 | $game = $entityManager->getRepository(Game::class) |
108 | - ->find($params['gameId']); |
|
108 | + ->find($params['gameId']); |
|
109 | 109 | $userBetting->setGame($game); |
110 | 110 | $userBetting->setUser($this->getUser()); |
111 | 111 | } |