Completed
Push — master ( 78c5ac...5cc9e5 )
by Rafal
06:45
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   +6 added lines, -6 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
 
@@ -145,19 +145,19 @@  discard block
 block discarded – undo
145 145
             $userBetting->setUser($this->getUser());
146 146
         }
147 147
 
148
-        if($params['firstTeamResult'] < 0) {
148
+        if ($params['firstTeamResult'] < 0) {
149 149
             $params['firstTeamResult'] = 0;
150 150
         }
151 151
 
152
-        if($params['secondTeamResult'] < 0) {
152
+        if ($params['secondTeamResult'] < 0) {
153 153
             $params['secondTeamResult'] = 0;
154 154
         }
155 155
 
156 156
         $userBetting->setFirstTeamResult($params['firstTeamResult']);
157 157
         $userBetting->setSecondTeamResult($params['secondTeamResult']);
158 158
 
159
-        if($userBetting->getGame()->getDate()->getTimestamp() < time() ) {
160
-            dump(__FUNCTION__ .' / '. __FILE__ .' / '. __LINE__);
159
+        if ($userBetting->getGame()->getDate()->getTimestamp() < time()) {
160
+            dump(__FUNCTION__.' / '.__FILE__.' / '.__LINE__);
161 161
             return $this->json(['status' => false]);
162 162
         }
163 163
 
Please login to merge, or discard this patch.