Code Duplication    Length = 8-8 lines in 3 locations

src/Connectors/Http.php 3 locations

@@ 283-290 (lines=8) @@
280
     *
281
     * @return mixed
282
     */
283
    public function create($uri, $data = null, $options = [])
284
    {
285
        if (!is_null($data)) {
286
            $options['form_params'] = $data;
287
        }
288
289
        return new HttpResponse($this->getClient()->request('POST', $uri, $options));
290
    }
291
292
    /**
293
     * @param string     $uri
@@ 299-306 (lines=8) @@
296
     *
297
     * @return mixed
298
     */
299
    public function update($uri, $data = null, $options = [])
300
    {
301
        if (!is_null($data)) {
302
            $options['form_params'] = $data;
303
        }
304
305
        return new HttpResponse($this->getClient()->request('PATCH', $uri, $options));
306
    }
307
308
    /**
309
     * @param string     $uri
@@ 315-322 (lines=8) @@
312
     *
313
     * @return mixed
314
     */
315
    public function replace($uri, $data = null, $options = [])
316
    {
317
        if (!is_null($data)) {
318
            $options['form_params'] = $data;
319
        }
320
321
        return new HttpResponse($this->getClient()->request('PUT', $uri, $options));
322
    }
323
324
    /**
325
     * @param string $uri