Code Duplication    Length = 10-10 lines in 2 locations

models/Match.php 2 locations

@@ 547-556 (lines=10) @@
544
     *
545
     * @return null|int
546
     */
547
    public function getPlayerEloBefore(Player $player)
548
    {
549
        $this->getPlayerEloChangelog();
550
551
        if (isset($this->player_elo_changelog[$player->getId()])) {
552
            return $this->player_elo_changelog[$player->getId()]['before'];
553
        }
554
555
        return null;
556
    }
557
558
    /**
559
     * Get the Elo for the player after this match occurred
@@ 565-574 (lines=10) @@
562
     *
563
     * @return null|int
564
     */
565
    public function getPlayerEloAfter(Player $player)
566
    {
567
        $this->getPlayerEloChangelog();
568
569
        if (isset($this->player_elo_changelog[$player->getId()])) {
570
            return $this->player_elo_changelog[$player->getId()]['after'];
571
        }
572
573
        return null;
574
    }
575
576
    /**
577
     * Set the Elo difference applied to players