Code Duplication    Length = 11-11 lines in 2 locations

lib/ApiClient/Guzzle5ApiClient.php 1 location

@@ 48-58 (lines=11) @@
45
     *
46
     * @return string
47
     */
48
    protected function serializeResponse($response)
49
    {
50
        /** @var ResponseInterface $response */
51
        $serialized = serialize([
52
            $response->getStatusCode(),
53
            $response->getHeaders(),
54
            (string) $response->getBody(),
55
        ]);
56
57
        return $serialized;
58
    }
59
60
    /**
61
     * Unserializes the serialized response into a ResponseInterface instance.

lib/ApiClient/Guzzle6ApiClient.php 1 location

@@ 38-48 (lines=11) @@
35
     *
36
     * @return string
37
     */
38
    protected function serializeResponse($response)
39
    {
40
        /** @var ResponseInterface $response */
41
        $serialized = serialize([
42
            $response->getStatusCode(),
43
            $response->getHeaders(),
44
            (string) $response->getBody(),
45
        ]);
46
47
        return $serialized;
48
    }
49
50
    /**
51
     * {@inheritdoc}