@@ -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(); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $qb = $this->createQueryBuilder('game'); |
| 26 | 26 | $qb->where('game.date > :date') |
| 27 | - ->setParameter('date', new \DateTime()) |
|
| 27 | + ->setParameter('date', new \DateTime()) |
|
| 28 | 28 | ->orderBy('game.date', 'ASC'); |
| 29 | 29 | |
| 30 | 30 | return $qb->getQuery()->getResult(); |
@@ -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 | )); |
| 44 | 44 | } |
| 45 | 45 | |
@@ -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() |
@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | public function index($gameId) |
| 60 | 60 | { |
| 61 | 61 | $game = $this->getDoctrine() |
| 62 | - ->getRepository(Game::class) |
|
| 63 | - ->find($gameId) |
|
| 62 | + ->getRepository(Game::class) |
|
| 63 | + ->find($gameId) |
|
| 64 | 64 | ; |
| 65 | 65 | |
| 66 | 66 | if (!$game) { |
@@ -100,12 +100,12 @@ discard block |
||
| 100 | 100 | $entityManager = $this->getDoctrine()->getManager(); |
| 101 | 101 | |
| 102 | 102 | $userBetting = $entityManager->getRepository(UserBettingEntity::class) |
| 103 | - ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId()) |
|
| 103 | + ->findByGameIdAndUserId($params['gameId'], $this->getUser()->getId()) |
|
| 104 | 104 | ; |
| 105 | 105 | if (!$userBetting instanceof UserBettingEntity) { |
| 106 | 106 | $userBetting = new UserBettingEntity(); |
| 107 | 107 | $game = $entityManager->getRepository(Game::class) |
| 108 | - ->find($params['gameId']); |
|
| 108 | + ->find($params['gameId']); |
|
| 109 | 109 | $userBetting->setGame($game); |
| 110 | 110 | $userBetting->setUser($this->getUser()); |
| 111 | 111 | } |