Code Duplication    Length = 3-3 lines in 2 locations

src/ErrorPlugin.php 2 locations

@@ 44-46 (lines=3) @@
41
     */
42
    protected function transformResponseToException(RequestInterface $request, ResponseInterface $response)
43
    {
44
        if ($response->getStatusCode() >= 400 && $response->getStatusCode() < 500) {
45
            throw new ClientErrorException($response->getReasonPhrase(), $request, $response);
46
        }
47
48
        if ($response->getStatusCode() >= 500 && $response->getStatusCode() < 600) {
49
            throw new ServerErrorException($response->getReasonPhrase(), $request, $response);
@@ 48-50 (lines=3) @@
45
            throw new ClientErrorException($response->getReasonPhrase(), $request, $response);
46
        }
47
48
        if ($response->getStatusCode() >= 500 && $response->getStatusCode() < 600) {
49
            throw new ServerErrorException($response->getReasonPhrase(), $request, $response);
50
        }
51
52
        return $response;
53
    }