Code Duplication    Length = 14-14 lines in 2 locations

src/GuzzleAdapter.php 2 locations

@@ 285-298 (lines=14) @@
282
     *
283
     * @return Response|false The response or false if failed.
284
     */
285
    protected function get($path)
286
    {
287
        try {
288
            $response = $this->client->get($this->base . $path)->send();
289
        } catch (BadResponseException $e) {
290
            return false;
291
        }
292
293
        if ($response->getStatusCode() !== 200) {
294
            return false;
295
        }
296
297
        return $response;
298
    }
299
300
    /**
301
     * Performs a HEAD request.
@@ 307-320 (lines=14) @@
304
     *
305
     * @return Response|false The response or false if failed.
306
     */
307
    protected function head($path)
308
    {
309
        try {
310
            $response = $this->client->head($this->base . $path)->send();
311
        } catch (BadResponseException $e) {
312
            return false;
313
        }
314
315
        if ($response->getStatusCode() !== 200) {
316
            return false;
317
        }
318
319
        return $response;
320
    }
321
}
322