Code Duplication    Length = 8-9 lines in 2 locations

src/JCRequest.php 2 locations

@@ 24-32 (lines=9) @@
21
     * @param array $options
22
     * @return JCResponse
23
     */
24
    public static function get($url, $headers = [], $params = [], $options = [])
25
    {
26
        $finalUrl = static::manipulateUrl($url, $params);
27
28
        $client = new Client();
29
        return new JCResponse($client->request('GET', $finalUrl, [
30
            'headers' => $headers
31
        ]));
32
    }
33
34
    public static function post($url, $headers = [], $params = [], $options = [])
35
    {
@@ 34-41 (lines=8) @@
31
        ]));
32
    }
33
34
    public static function post($url, $headers = [], $params = [], $options = [])
35
    {
36
        $client = new Client();
37
        return new JCResponse($client->request('POST', $url, [
38
            'headers' => $headers,
39
            'form_params' => $params
40
        ]));
41
    }
42
43
    public static function put($url, $headers, $params, $options)
44
    {