Code Duplication    Length = 9-9 lines in 2 locations

catalog/includes/apps/braintree/lib/Braintree/Http.php 2 locations

@@ 20-28 (lines=9) @@
17
        $this->_config = $config;
18
    }
19
20
    public function delete($path)
21
    {
22
        $response = $this->_doRequest('DELETE', $path);
23
        if($response['status'] === 200) {
24
            return true;
25
        } else {
26
            Util::throwStatusCodeException($response['status']);
27
        }
28
    }
29
30
    public function get($path)
31
    {
@@ 30-38 (lines=9) @@
27
        }
28
    }
29
30
    public function get($path)
31
    {
32
        $response = $this->_doRequest('GET', $path);
33
        if ($response['status'] === 200) {
34
            return Xml::buildArrayFromXml($response['body']);
35
        } else {
36
            Util::throwStatusCodeException($response['status']);
37
        }
38
    }
39
40
    public function post($path, $params = null)
41
    {