Code Duplication    Length = 15-17 lines in 2 locations

src/Syntax/SteamApi/Steam/User/Stats.php 2 locations

@@ 100-116 (lines=17) @@
97
        }
98
    }
99
100
    public function GetGlobalAchievementPercentagesForApp($gameId)
101
    {
102
        // Set up the api details
103
        $this->method  = __FUNCTION__;
104
        $this->version = 'v0002';
105
106
        // Set up the arguments
107
        $arguments = [
108
            'gameid' => $gameId,
109
            'l'      => 'english',
110
        ];
111
112
        // Get the client
113
        $client = $this->setUpClient($arguments)->achievementpercentages;
114
115
        return $client->achievements;
116
    }
117
118
    /**
119
     * @param $appId int Steam 64 id
@@ 155-169 (lines=15) @@
152
     *
153
     * @return mixed
154
     */
155
    public function GetSchemaForGame($appId)
156
    {
157
        // Set up the api details
158
        $this->method  = __FUNCTION__;
159
        $this->version = 'v0002';
160
161
        // Set up the arguments
162
        $arguments = [
163
            'appid' => $appId,
164
            'l'     => 'english',
165
        ];
166
167
        // Get the client
168
        return $this->setUpClient($arguments);
169
    }
170
171
    protected function convertToObjects($achievements)
172
    {