Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function process(Game $game): void |
||
25 | { |
||
26 | //----- get ranking with maxRank = 1 |
||
27 | $ranking = $this->teamGameRankingQuery->getRankingPoints($game->getId(), ['maxRank' => 1]); |
||
28 | $teams = array(); |
||
29 | foreach ($ranking as $teamGame) { |
||
30 | $teams[$teamGame->getTeam()->getId()] = 0; |
||
31 | } |
||
32 | |||
33 | $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\TeamBadge')->updateBadge($teams, $game->getBadge()); |
||
|
|||
34 | } |
||
36 |