Completed
Push — master ( 5cc9e5...95bdb2 )
by Rafal
13:19 queued 06:12
created
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.