Code Duplication    Length = 10-10 lines in 2 locations

models/Match.php 2 locations

@@ 628-637 (lines=10) @@
625
     *
626
     * @return null|int
627
     */
628
    public function getPlayerEloBefore(Player $player)
629
    {
630
        $this->getPlayerEloChangelog();
631
632
        if (isset($this->player_elo_changelog[$player->getId()])) {
633
            return $this->player_elo_changelog[$player->getId()]['before'];
634
        }
635
636
        return null;
637
    }
638
639
    /**
640
     * Get the Elo for the player after this match occurred
@@ 646-655 (lines=10) @@
643
     *
644
     * @return null|int
645
     */
646
    public function getPlayerEloAfter(Player $player)
647
    {
648
        $this->getPlayerEloChangelog();
649
650
        if (isset($this->player_elo_changelog[$player->getId()])) {
651
            return $this->player_elo_changelog[$player->getId()]['after'];
652
        }
653
654
        return null;
655
    }
656
657
    /**
658
     * Set the Elo difference applied to players