Code Duplication    Length = 12-12 lines in 2 locations

src/Adapters/GuzzleHttpAdapter.php 2 locations

@@ 90-101 (lines=12) @@
87
    /**
88
     * {@inheritdoc}
89
     */
90
    public function put($url, $content = '')
91
    {
92
        $options = [];
93
        $options[is_array($content) ? 'json' : 'body'] = $content;
94
        try {
95
            $this->response = $this->client->put($url, $options);
96
        } catch (RequestException $e) {
97
            $this->response = $e->getResponse();
98
            $this->handleError();
99
        }
100
        return $this->response->getBody();
101
    }
102
103
    /**
104
     * {@inheritdoc}
@@ 106-117 (lines=12) @@
103
    /**
104
     * {@inheritdoc}
105
     */
106
    public function post($url, $content = '')
107
    {
108
        $options = [];
109
        $options[is_array($content) ? 'json' : 'body'] = $content;
110
        try {
111
            $this->response = $this->client->post($url, $options);
112
        } catch (RequestException $e) {
113
            $this->response = $e->getResponse();
114
            $this->handleError();
115
        }
116
        return $this->response->getBody();
117
    }
118
119
    /**
120
     * {@inheritdoc}