Completed
Push — master ( e7a6c5...67cf24 )
by Rafal
12s queued 10s
created
public/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 }
17 17
 
18 18
 $env = $_SERVER['APP_ENV'] ?? 'dev';
19
-$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));
19
+$debug = (bool)($_SERVER['APP_DEBUG'] ?? ('prod' !== $env));
20 20
 
21 21
 if ($debug) {
22 22
     umask(0000);
Please login to merge, or discard this patch.
src/GameExtraBetting/Communication/Controller/UserExtraBetting.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
     {
76 76
         $result = [];
77 77
         $teams = $this->getDoctrine()->getRepository(Team::class)
78
-                      ->findAll();
78
+                        ->findAll();
79 79
 
80 80
         foreach ($teams as $team) {
81 81
             $result[$team->getName()] = $team->getId();
Please login to merge, or discard this patch.
src/GameCore/Persistence/Repository/GameRepository.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $qb = $this->createQueryBuilder('game');
26 26
         $qb->where('game.date > :date')
27
-           ->setParameter('date', new \DateTime())
27
+            ->setParameter('date', new \DateTime())
28 28
             ->orderBy('game.date', 'ASC');
29 29
 
30 30
         return $qb->getQuery()->getResult();
Please login to merge, or discard this patch.
src/GameBetting/Business/Form/UserBettingType.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@
 block discarded – undo
37 37
     public function configureOptions(OptionsResolver $resolver)
38 38
     {
39 39
         $resolver->setDefaults(array(
40
-           'game' => null,
41
-           'bet' => null,
42
-           'editable' => null
40
+            'game' => null,
41
+            'bet' => null,
42
+            'editable' => null
43 43
         ));
44 44
     }
45 45
 
Please login to merge, or discard this patch.
src/GameBetting/Persistence/Repository/UserBettingRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function findUserBettingByUserId(User $user, array $games)
24 24
     {
25 25
         $gameIds = array_map(
26
-            function ($game) {
26
+            function($game) {
27 27
                 return $game->getId();
28 28
             },
29 29
             $games
Please login to merge, or discard this patch.
src/GameBetting/Persistence/Entity/UserBetting.php 1 patch
Indentation   -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,6 @@  discard block
 block discarded – undo
113 113
 
114 114
     /**
115 115
      * Gets triggered only on insert
116
-
117 116
      * @ORM\PrePersist
118 117
      */
119 118
     public function onPrePersist()
@@ -123,7 +122,6 @@  discard block
 block discarded – undo
123 122
 
124 123
     /**
125 124
      * Gets triggered every time on update
126
-
127 125
      * @ORM\PreUpdate
128 126
      */
129 127
     public function onPreUpdate()
Please login to merge, or discard this patch.
src/GameBetting/Communication/Controller/UserBetting.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
 
39 39
 
40 40
         $pastGames = $this->getDoctrine()
41
-                          ->getRepository(Game::class)
42
-                          ->findPastGames()
41
+                            ->getRepository(Game::class)
42
+                            ->findPastGames()
43 43
         ;
44 44
 
45 45
         $user = $this->getUser();
46 46
 
47 47
         $userBets = $this->getDoctrine()
48
-                         ->getRepository(UserBettingEntity::class)
49
-                         ->findUserBettingByUserId($user, $pastGames)
48
+                            ->getRepository(UserBettingEntity::class)
49
+                            ->findUserBettingByUserId($user, $pastGames)
50 50
         ;
51 51
 
52 52
         $pastGamesForm = [];
@@ -94,8 +94,8 @@  discard block
 block discarded – undo
94 94
     public function index($gameId)
95 95
     {
96 96
         $game = $this->getDoctrine()
97
-                     ->getRepository(Game::class)
98
-                     ->find($gameId)
97
+                        ->getRepository(Game::class)
98
+                        ->find($gameId)
99 99
         ;
100 100
 
101 101
         if (!$game) {
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         $entityManager = $this->getDoctrine()->getManager();
129 129
 
130 130
         $userBetting = $entityManager->getRepository(UserBettingEntity::class)
131
-                                     ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId())
131
+                                        ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId())
132 132
         ;
133 133
         if (!$userBetting instanceof UserBettingEntity) {
134 134
             $userBetting = new UserBettingEntity();
135 135
             $game = $entityManager->getRepository(Game::class)
136
-                                  ->find($params['gameId']);
136
+                                    ->find($params['gameId']);
137 137
             $userBetting->setGame($game);
138 138
             $userBetting->setUser($this->getUser());
139 139
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
         $userBetting->setFirstTeamResult($params['firstTeamResult']);
142 142
         $userBetting->setSecondTeamResult($params['secondTeamResult']);
143 143
 
144
-        if($userBetting->getGame()->getDate()->getTimestamp() < time() ) {
144
+        if ($userBetting->getGame()->getDate()->getTimestamp() < time()) {
145 145
             return $this->json(['status' => false]);
146 146
         }
147 147
 
Please login to merge, or discard this patch.