Code Duplication    Length = 7-7 lines in 2 locations

src/Message/CompletePurchaseRequest.php 1 location

@@ 37-43 (lines=7) @@
34
        return $data;
35
    }
36
37
    public function sendData($data)
38
    {
39
        $postdata = http_build_query($data);
40
        $httpResponse = $this->httpClient->request('GET', $this->getEndPoint('').'&'.$postdata, []);
41
42
        return $this->response = new CompletePurchaseResponse($this, $httpResponse->getBody()->getContents());
43
    }
44
}
45

src/Message/PurchaseRequest.php 1 location

@@ 96-102 (lines=7) @@
93
        return $data;
94
    }
95
96
    public function sendData($data)
97
    {
98
        $postdata = http_build_query($data);
99
        $httpResponse = $this->httpClient->request('POST', $this->getEndPoint($postdata), [], $postdata);
100
101
        return $this->response = new PurchaseResponse($this, $httpResponse->getBody()->getContents());
102
    }
103
104
    /**
105
     * Package up, and limit the customer details.