Code Duplication    Length = 16-16 lines in 2 locations

src/ResponseDecodingException.php 1 location

@@ 26-41 (lines=16) @@
23
    /**
24
     * {@inheritdoc}
25
     */
26
    protected function getErrorInfo()
27
    {
28
        $request = $this->getRequest();
29
        $response = $this->getResponse();
30
31
        return [
32
            'statusCode' => $response->getStatusCode(),
33
            'data' => $response->getRawData(),
34
            'headers' => $response->getHeaders(),
35
            'request' => [
36
                'method' => $request->getMethod(),
37
                'uri' => $request->getFullUri(),
38
                'body' => $request->getBody(),
39
            ],
40
        ];
41
    }
42
}
43

src/ResponseErrorException.php 1 location

@@ 64-79 (lines=16) @@
61
    /**
62
     * @return array
63
     */
64
    protected function getErrorInfo()
65
    {
66
        $request = $this->getRequest();
67
        $response = $this->getResponse();
68
69
        return [
70
            'statusCode' => $response->getStatusCode(),
71
            'data' => $response->getData(),
72
            'headers' => $response->getHeaders(),
73
            'request' => [
74
                'method' => $request->getMethod(),
75
                'uri' => $request->getFullUri(),
76
                'body' => $request->getBody(),
77
            ],
78
        ];
79
    }
80
}
81