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

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