Code Duplication    Length = 13-14 lines in 2 locations

src/Client/Client.php 2 locations

@@ 61-74 (lines=14) @@
58
     *
59
     * @return ResponseInterface
60
     */
61
    public function post($url, $body)
62
    {
63
        try {
64
            $response = $this->client->request('POST', $url, [
65
                'headers' => $this->headers->getValues(),
66
                'body'    => $body,
67
                'verify'  => false
68
            ]);
69
70
            return $response;
71
        } catch (RequestException $e) {
72
            throw new SiftScienceRequestException($e);
73
        }
74
    }
75
76
    /**
77
     * @param string $url
@@ 82-94 (lines=13) @@
79
     *
80
     * @return ResponseInterface
81
     */
82
    public function get($url)
83
    {
84
        try {
85
            $response = $this->client->request('GET', $url, [
86
                'headers' => $this->headers->getValues(),
87
                'verify' => false
88
            ]);
89
90
            return $response;
91
        } catch (RequestException $e) {
92
            throw new SiftScienceRequestException($e);
93
        }
94
    }
95
}
96