|
@@ -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
|
|