Code Duplication    Length = 7-7 lines in 2 locations

src/WrapIt/Http/WrapItApiRequester.php 2 locations

@@ 16-22 (lines=7) @@
13
        $this->domain = $domain;
14
    }
15
16
    public function get($api, $data = array()) {
17
        $api = ltrim($api, "/");
18
        return $this->request(array(
19
            "url" => "https://" . $this->domain . "/" . $api,
20
            "get" => $data
21
        ));
22
    }
23
24
    public function post($api, $data) {
25
        $api = ltrim($api, "/");
@@ 24-30 (lines=7) @@
21
        ));
22
    }
23
24
    public function post($api, $data) {
25
        $api = ltrim($api, "/");
26
        return $this->request(array(
27
            "url" => "https://" . $this->domain . "/" . $api,
28
            "post" => $data
29
        ));
30
    }
31
32
}
33