Completed
Pull Request — master (#6)
by Rafal
04:47
created
src/GameBetting/Communication/Controller/UserBetting.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.