Code Duplication    Length = 9-9 lines in 4 locations

api/Lib/DsManager/Models/Orm/Team.php 4 locations

@@ 57-65 (lines=9) @@
54
    /**
55
     * @return mixed
56
     */
57
    public function playedMatchesHome()
58
    {
59
        return $this->hasMany(
60
            MatchResult::class,
61
            'home_team_id'
62
        )->where('simulated', true)
63
            ->orderBy('updated_at', 'DESC')
64
            ->limit(self::PLAYED_LIMIT);
65
    }
66
67
    /**
68
     * @return mixed
@@ 70-78 (lines=9) @@
67
    /**
68
     * @return mixed
69
     */
70
    public function futureMatchesHome()
71
    {
72
        return $this->hasMany(
73
            MatchResult::class,
74
            'home_team_id'
75
        )->where('simulated', false)
76
            ->orderBy('updated_at', 'DESC')
77
            ->limit(self::FUTURE_LIMIT);
78
    }
79
80
    /**
81
     * @return mixed
@@ 83-91 (lines=9) @@
80
    /**
81
     * @return mixed
82
     */
83
    public function playedMatchesAway()
84
    {
85
        return $this->hasMany(
86
            MatchResult::class,
87
            'away_team_id'
88
        )->where('simulated', true)
89
            ->orderBy('updated_at', 'DESC')
90
            ->limit(self::PLAYED_LIMIT);
91
    }
92
93
    /**
94
     * @return mixed
@@ 96-104 (lines=9) @@
93
    /**
94
     * @return mixed
95
     */
96
    public function futureMatchesAway()
97
    {
98
        return $this->hasMany(
99
            MatchResult::class,
100
            'away_team_id'
101
        )->where('simulated', false)
102
            ->orderBy('updated_at', 'DESC')
103
            ->limit(self::FUTURE_LIMIT);
104
    }
105
106
107
    /**