@@ -73,7 +73,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -37,9 +37,9 @@ |
||
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 | } |