Code Duplication    Length = 16-18 lines in 2 locations

src/Syntax/SteamApi/Steam/App.php 1 location

@@ 28-45 (lines=18) @@
25
     * @param null $language
26
     * @return Collection
27
     */
28
    public function appDetails($appIds, $country = null, $language = null)
29
    {
30
        // Set up the api details
31
        $this->method  = 'appdetails';
32
        $this->version = null;
33
34
        // Set up the arguments
35
        $arguments = [
36
            'appids' => $appIds,
37
            'cc' => $country,
38
            'l' => $language,
39
        ];
40
41
        // Get the client
42
        $client = $this->setUpClient($arguments);
43
44
        return $this->convertToObjects($client);
45
    }
46
47
    public function GetAppList()
48
    {

src/Syntax/SteamApi/Steam/Package.php 1 location

@@ 18-33 (lines=16) @@
15
        $this->interface = 'api';
16
    }
17
18
    public function packageDetails($packIds, $cc = null, $language = null)
19
    {
20
        // Set up the api details
21
        $this->method = 'packagedetails';
22
        $this->version = null;
23
        // Set up the arguments
24
        $arguments = [
25
            'packageids' => $packIds,
26
            'cc'         => $cc,
27
            'l'          => $language,
28
        ];
29
        // Get the client
30
        $client = $this->setUpClient($arguments);
31
32
        return $this->convertToObjects($client, $packIds);
33
    }
34
35
    protected function convertToObjects($package, $packIds)
36
    {