Completed
Pull Request — master (#8)
by
unknown
03:21
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/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/Communication/Controller/UserBetting.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,10 +124,10 @@  discard block
 block discarded – undo
124 124
         if (!$form->isSubmitted() && !$form->isValid()) {
125 125
             return $this->json(['status' => false]);
126 126
         }
127
-        if(!isset($params['firstTeamResult'])  || $params['firstTeamResult'] < 0) {
127
+        if (!isset($params['firstTeamResult']) || $params['firstTeamResult'] < 0) {
128 128
             return $this->json(['status' => false]);
129 129
         }
130
-        if(!isset($params['secondTeamResult'])  || $params['secondTeamResult'] < 0) {
130
+        if (!isset($params['secondTeamResult']) || $params['secondTeamResult'] < 0) {
131 131
             return $this->json(['status' => false]);
132 132
         }
133 133
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $userBetting->setFirstTeamResult($params['firstTeamResult']);
150 150
         $userBetting->setSecondTeamResult($params['secondTeamResult']);
151 151
 
152
-        if($userBetting->getGame()->getDate()->getTimestamp() < time() ) {
152
+        if ($userBetting->getGame()->getDate()->getTimestamp() < time()) {
153 153
             return $this->json(['status' => false]);
154 154
         }
155 155
 
Please login to merge, or discard this patch.
src/GameExtraBetting/Communication/Controller/UserExtraBetting.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,9 +29,9 @@
 block discarded – undo
29 29
 
30 30
         $bet = new \App\GameExtraBetting\Persistence\Entity\UserExtraBetting();
31 31
         $forms[1] = $this->createForm(UserExtraBettingType::class, $bet,
32
-                ['teams' => $teams, 'extrabet' => array_key_exists(1, $bets) ? $bets[1] : null , 'label' => 'Tipp 1', 'type' => 1]
32
+                ['teams' => $teams, 'extrabet' => array_key_exists(1, $bets) ? $bets[1] : null, 'label' => 'Tipp 1', 'type' => 1]
33 33
                 )->createView();
34
-        $forms[2] =  $this->createForm(UserExtraBettingType::class, $bet,
34
+        $forms[2] = $this->createForm(UserExtraBettingType::class, $bet,
35 35
                 ['teams' => $teams, 'extrabet' => array_key_exists(2, $bets) ? $bets[2] : null, 'label' => 'Tipp 2', 'type' => 2]
36 36
                 )->createView();
37 37
 
Please login to merge, or discard this patch.