@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | ->findOneBy(['id' => $userId]); |
99 | 99 | $pastGamesForm = []; |
100 | 100 | $username = ''; |
101 | - if($user instanceof User) { |
|
101 | + if ($user instanceof User) { |
|
102 | 102 | $pastGamesForm = $this->userPastGames->get($user); |
103 | 103 | $username = $user->getUsername(); |
104 | 104 | } |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | |
116 | 116 | public function getNextGames(int $numberOfGames) |
117 | 117 | { |
118 | - $gameBetResult = \array_slice($this->userFutureGames->get($this->getUser()),0,$numberOfGames); |
|
118 | + $gameBetResult = \array_slice($this->userFutureGames->get($this->getUser()), 0, $numberOfGames); |
|
119 | 119 | |
120 | 120 | return $this->render( |
121 | 121 | 'dashboard/next_games.html.twig', |
@@ -138,10 +138,10 @@ discard block |
||
138 | 138 | if (!$form->isSubmitted() && !$form->isValid()) { |
139 | 139 | return $this->json(['status' => false]); |
140 | 140 | } |
141 | - if(!isset($params['firstTeamResult']) || $params['firstTeamResult'] < 0) { |
|
141 | + if (!isset($params['firstTeamResult']) || $params['firstTeamResult'] < 0) { |
|
142 | 142 | return $this->json(['status' => false]); |
143 | 143 | } |
144 | - if(!isset($params['secondTeamResult']) || $params['secondTeamResult'] < 0) { |
|
144 | + if (!isset($params['secondTeamResult']) || $params['secondTeamResult'] < 0) { |
|
145 | 145 | return $this->json(['status' => false]); |
146 | 146 | } |
147 | 147 | |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $userBetting->setFirstTeamResult((int)$params['firstTeamResult']); |
163 | 163 | $userBetting->setSecondTeamResult((int)$params['secondTeamResult']); |
164 | 164 | |
165 | - if($userBetting->getGame()->getDate()->getTimestamp() < time() ) { |
|
165 | + if ($userBetting->getGame()->getDate()->getTimestamp() < time()) { |
|
166 | 166 | return $this->json(['status' => false]); |
167 | 167 | } |
168 | 168 |