Code Duplication    Length = 8-11 lines in 2 locations

src/LoLApi/Api/ChampionMasteryApi.php 2 locations

@@ 27-34 (lines=8) @@
24
     *
25
     * @return ApiResult
26
     */
27
    public function getChampionMastery($platformId, $championId, $playerId)
28
    {
29
        $url = str_replace('{championId}', $championId, self::API_URL_CHAMPION_MASTERY_BY_ID);
30
        $url = str_replace('{playerId}', $playerId, $url);
31
        $url = str_replace('{platformId}', $platformId, $url);
32
33
        return $this->callApiUrl($url, []);
34
    }
35
36
    /**
37
     * @param int $platformId
@@ 71-81 (lines=11) @@
68
     *
69
     * @return ApiResult
70
     */
71
    public function getTopChampionsMasteries($platformId, $playerId, $limit = 3)
72
    {
73
        $url = str_replace('{playerId}', $playerId, self::API_URL_CHAMPION_MASTERY_TOP);
74
        $url = str_replace('{platformId}', $platformId, $url);
75
76
        $queryParameters = [];
77
78
        $queryParameters['count'] = (int) $limit;
79
80
        return $this->callApiUrl($url, array_filter($queryParameters));
81
    }
82
}
83