Passed
Push — master ( 57050c...eb8a02 )
by
unknown
03:36
created
src/GameBetting/Communication/Controller/UserBetting.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
     public function getNextGames(int $numberOfGames, GameRepository $gameRepository)
75 75
     {
76
-        $gameBetResult = \array_slice($this->userFutureGames->get($this->getUser()),0,$numberOfGames);
76
+        $gameBetResult = \array_slice($this->userFutureGames->get($this->getUser()), 0, $numberOfGames);
77 77
 
78 78
         return $this->render(
79 79
             'dashboard/next_games.html.twig',
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
         if (!$form->isSubmitted() && !$form->isValid()) {
97 97
             return $this->json(['status' => false]);
98 98
         }
99
-        if(!isset($params['firstTeamResult'])  || $params['firstTeamResult'] < 0) {
99
+        if (!isset($params['firstTeamResult']) || $params['firstTeamResult'] < 0) {
100 100
             return $this->json(['status' => $params]);
101 101
         }
102
-        if(!isset($params['secondTeamResult'])  || $params['secondTeamResult'] < 0) {
102
+        if (!isset($params['secondTeamResult']) || $params['secondTeamResult'] < 0) {
103 103
             return $this->json(['status' => false]);
104 104
         }
105 105
         
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         $userBetting->setFirstTeamResult((int)$params['firstTeamResult']);
121 121
         $userBetting->setSecondTeamResult((int)$params['secondTeamResult']);
122 122
 
123
-        if($userBetting->getGame()->getDate()->getTimestamp() < time() ) {
123
+        if ($userBetting->getGame()->getDate()->getTimestamp() < time()) {
124 124
             return $this->json(['status' => false]);
125 125
         }
126 126
 
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
             'csrf_protection' => false
44 44
         ));
45 45
     }
Please login to merge, or discard this patch.