@@ -16,7 +16,7 @@ |
||
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | $env = $_SERVER['APP_ENV'] ?? 'dev'; |
| 19 | -$debug = (bool) ($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); |
|
| 19 | +$debug = (bool)($_SERVER['APP_DEBUG'] ?? ('prod' !== $env)); |
|
| 20 | 20 | |
| 21 | 21 | if ($debug) { |
| 22 | 22 | umask(0000); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | public function findUserBettingByUserId(User $user, array $games) |
| 24 | 24 | { |
| 25 | 25 | $gameIds = array_map( |
| 26 | - function ($game) { |
|
| 26 | + function($game) { |
|
| 27 | 27 | return $game->getId(); |
| 28 | 28 | }, |
| 29 | 29 | $games |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | $userBetting->setFirstTeamResult($params['firstTeamResult']); |
| 142 | 142 | $userBetting->setSecondTeamResult($params['secondTeamResult']); |
| 143 | 143 | |
| 144 | - if($userBetting->getGame()->getDate()->getTimestamp() < time() ) { |
|
| 144 | + if ($userBetting->getGame()->getDate()->getTimestamp() < time()) { |
|
| 145 | 145 | return $this->json(['status' => false]); |
| 146 | 146 | } |
| 147 | 147 | |