| @@ -27,12 +27,12 @@ discard block | ||
| 27 | 27 | */ | 
| 28 | 28 | public function getIds() : array | 
| 29 | 29 |      { | 
| 30 | -         return $this->createQueryBuilder('game') | |
| 31 | -             ->select('game.id') | |
| 32 | -             ->where('game.status = :status') | |
| 33 | -             ->setParameter('status', GameStatus::STATUS_ACTIVE) | |
| 34 | - ->getQuery() | |
| 35 | - ->getResult(AbstractQuery::HYDRATE_ARRAY); | |
| 30 | +            return $this->createQueryBuilder('game') | |
| 31 | +                ->select('game.id') | |
| 32 | +                ->where('game.status = :status') | |
| 33 | +                ->setParameter('status', GameStatus::STATUS_ACTIVE) | |
| 34 | + ->getQuery() | |
| 35 | + ->getResult(AbstractQuery::HYDRATE_ARRAY); | |
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | /** | 
| @@ -263,7 +263,7 @@ discard block | ||
| 263 | 263 | */ | 
| 264 | 264 | private function getCountQueryBuilder(): QueryBuilder | 
| 265 | 265 |      { | 
| 266 | -         return $this->createQueryBuilder('g') | |
| 266 | +            return $this->createQueryBuilder('g') | |
| 267 | 267 |              ->select('COUNT(g.id)'); | 
| 268 | 268 | } | 
| 269 | 269 | |
| @@ -82,11 +82,11 @@ discard block | ||
| 82 | 82 | } | 
| 83 | 83 | } | 
| 84 | 84 | |
| 85 | - /** | |
| 86 | - * @param PlayerChart $playerChart | |
| 87 | - * @param LifecycleEventArgs $event | |
| 88 | - * @throws ORMException | |
| 89 | - */ | |
| 85 | + /** | |
| 86 | + * @param PlayerChart $playerChart | |
| 87 | + * @param LifecycleEventArgs $event | |
| 88 | + * @throws ORMException | |
| 89 | + */ | |
| 90 | 90 | public function postUpdate(PlayerChart $playerChart, LifecycleEventArgs $event): void | 
| 91 | 91 |      { | 
| 92 | 92 | $em = $event->getObjectManager(); | 
| @@ -126,7 +126,7 @@ discard block | ||
| 126 | 126 | */ | 
| 127 | 127 | public function preRemove(PlayerChart $playerChart, LifecycleEventArgs $event): void | 
| 128 | 128 |      { | 
| 129 | - // Chart | |
| 129 | + // Chart | |
| 130 | 130 | $chart = $playerChart->getChart(); | 
| 131 | 131 | $chart->setNbPost($chart->getNbPost() - 1); | 
| 132 | 132 | $chart->setStatusPlayer(ChartStatus::STATUS_MAJ); |