| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 20 | public function process(Country $country): void | ||
| 21 |     { | ||
| 22 |         if ($country->getBadge() === null) { | ||
| 23 | return; | ||
| 24 | } | ||
| 25 | |||
| 26 |         $ranking = $this->countryRankingQuery->getRanking($country->getId(), array('maxRank' => 1)); | ||
| 27 | |||
| 28 | $players = array(); | ||
| 29 |         foreach ($ranking as $player) { | ||
| 30 | $players[$player->getId()] = 0; | ||
| 31 | } | ||
| 32 | |||
| 33 |         $this->em->getRepository('VideoGamesRecords\CoreBundle\Entity\PlayerBadge')->updateBadge($players, $country->getBadge()); | ||
| 34 | } | ||
| 36 |