@@ -75,7 +75,7 @@ |
||
| 75 | 75 | { |
| 76 | 76 | $result = []; |
| 77 | 77 | $teams = $this->getDoctrine()->getRepository(Team::class) |
| 78 | - ->findAll(); |
|
| 78 | + ->findAll(); |
|
| 79 | 79 | |
| 80 | 80 | foreach ($teams as $team) { |
| 81 | 81 | $result[$team->getName()] = $team->getId(); |
@@ -113,7 +113,6 @@ discard block |
||
| 113 | 113 | |
| 114 | 114 | /** |
| 115 | 115 | * Gets triggered only on insert |
| 116 | - |
|
| 117 | 116 | * @ORM\PrePersist |
| 118 | 117 | */ |
| 119 | 118 | public function onPrePersist() |
@@ -123,7 +122,6 @@ discard block |
||
| 123 | 122 | |
| 124 | 123 | /** |
| 125 | 124 | * Gets triggered every time on update |
| 126 | - |
|
| 127 | 125 | * @ORM\PreUpdate |
| 128 | 126 | */ |
| 129 | 127 | public function onPreUpdate() |
@@ -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 | } |
@@ -16,14 +16,14 @@ |
||
| 16 | 16 | { |
| 17 | 17 | $resultGames = []; |
| 18 | 18 | foreach ($matchInfos as $matchInfo) { |
| 19 | - $homeTeam = $matchInfo['home_team']; |
|
| 20 | - $awayTeam = $matchInfo['away_team']; |
|
| 21 | - $resultGames[] = new GameResult( |
|
| 22 | - $homeTeam['country'], |
|
| 23 | - $awayTeam['country'], |
|
| 24 | - (int)$homeTeam['goals'], |
|
| 25 | - (int)$awayTeam['goals'] |
|
| 26 | - ); |
|
| 19 | + $homeTeam = $matchInfo['home_team']; |
|
| 20 | + $awayTeam = $matchInfo['away_team']; |
|
| 21 | + $resultGames[] = new GameResult( |
|
| 22 | + $homeTeam['country'], |
|
| 23 | + $awayTeam['country'], |
|
| 24 | + (int)$homeTeam['goals'], |
|
| 25 | + (int)$awayTeam['goals'] |
|
| 26 | + ); |
|
| 27 | 27 | } |
| 28 | 28 | return $resultGames; |
| 29 | 29 | } |