Code Duplication    Length = 15-15 lines in 2 locations

src/ResponseDecodingException.php 1 location

@@ 26-40 (lines=15) @@
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
            'responseData' => $response->getRawData(),
34
            'request' => [
35
                'method' => $request->getMethod(),
36
                'uri' => $request->getFullUri(),
37
                'body' => $request->getBody(),
38
            ],
39
        ];
40
    }
41
}
42

src/ResponseErrorException.php 1 location

@@ 64-78 (lines=15) @@
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
            'responseData' => $response->getData(),
72
            'request' => [
73
                'method' => $request->getMethod(),
74
                'uri' => $request->getFullUri(),
75
                'body' => $request->getBody(),
76
            ],
77
        ];
78
    }
79
}
80