Code Duplication    Length = 14-14 lines in 2 locations

src/Mailgun/Api/Domain.php 1 location

@@ 40-53 (lines=14) @@
37
     *
38
     * @return IndexResponse
39
     */
40
    public function index($limit = 100, $skip = 0)
41
    {
42
        Assert::integer($limit);
43
        Assert::integer($skip);
44
45
        $params = [
46
            'limit' => $limit,
47
            'skip' => $skip,
48
        ];
49
50
        $response = $this->httpGet('/v3/domains', $params);
51
52
        return $this->safeDeserialize($response, IndexResponse::class);
53
    }
54
55
    /**
56
     * Returns a single domain.

src/Mailgun/Api/Routes.php 1 location

@@ 35-48 (lines=14) @@
32
     *
33
     * @return IndexResponse
34
     */
35
    public function index($limit = 100, $skip = 0)
36
    {
37
        Assert::integer($limit);
38
        Assert::integer($skip);
39
40
        $params = [
41
            'limit' => $limit,
42
            'skip' => $skip,
43
        ];
44
45
        $response = $this->httpGet('/v3/routes', $params);
46
47
        return $this->safeDeserialize($response, IndexResponse::class);
48
    }
49
50
    /**
51
     * Returns a single Route object based on its ID.