Code Duplication    Length = 15-15 lines in 2 locations

src/ResponseDecodingException.php 1 location

@@ 18-32 (lines=15) @@
15
    /**
16
     * {@inheritdoc}
17
     */
18
    protected function getDetailsArray()
19
    {
20
        $request = $this->getRequest();
21
        $response = $this->getResponse();
22
23
        return [
24
            'statusCode' => $response->getStatusCode(),
25
            'responseData' => $response->getRawData(),
26
            'request' => [
27
                'method' => $request->getMethod(),
28
                'uri' => $request->getFullUri(),
29
                'body' => $request->getBody(),
30
            ],
31
        ];
32
    }
33
}
34

src/ResponseErrorException.php 1 location

@@ 72-86 (lines=15) @@
69
    /**
70
     * @return array
71
     */
72
    protected function getDetailsArray()
73
    {
74
        $request = $this->getRequest();
75
        $response = $this->getResponse();
76
77
        return [
78
            'statusCode' => $response->getStatusCode(),
79
            'responseData' => $response->getData(),
80
            'request' => [
81
                'method' => $request->getMethod(),
82
                'uri' => $request->getFullUri(),
83
                'body' => $request->getBody(),
84
            ],
85
        ];
86
    }
87
}
88