Code Duplication    Length = 10-10 lines in 4 locations

src/Adapters/GuzzleAdapter.php 2 locations

@@ 53-62 (lines=10) @@
50
    /**
51
     * {@inheritdoc}
52
     */
53
    public function get($url)
54
    {
55
        try {
56
            $this->response = $this->client->get($url)->send();
57
        } catch (RequestException $e) {
58
            $this->response = $e->getResponse();
59
            $this->handleError();
60
        }
61
        return $this->response->getBody(true);
62
    }
63
64
    /**
65
     * {@inheritdoc}
@@ 67-76 (lines=10) @@
64
    /**
65
     * {@inheritdoc}
66
     */
67
    public function delete($url)
68
    {
69
        try {
70
            $this->response = $this->client->delete($url)->send();
71
        } catch (RequestException $e) {
72
            $this->response = $e->getResponse();
73
            $this->handleError();
74
        }
75
        return $this->response->getBody(true);
76
    }
77
78
    /**
79
     * {@inheritdoc}

src/Adapters/GuzzleHttpAdapter.php 2 locations

@@ 62-71 (lines=10) @@
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function get($url)
63
    {
64
        try {
65
            $this->response = $this->client->get($url);
66
        } catch (RequestException $e) {
67
            $this->response = $e->getResponse();
68
            $this->handleError();
69
        }
70
        return $this->response->getBody();
71
    }
72
73
    /**
74
     * {@inheritdoc}
@@ 76-85 (lines=10) @@
73
    /**
74
     * {@inheritdoc}
75
     */
76
    public function delete($url)
77
    {
78
        try {
79
            $this->response = $this->client->delete($url);
80
        } catch (RequestException $e) {
81
            $this->response = $e->getResponse();
82
            $this->handleError();
83
        }
84
        return $this->response->getBody();
85
    }
86
87
    /**
88
     * {@inheritdoc}