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

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