Code Duplication    Length = 3-3 lines in 2 locations

src/Plugin/ErrorPlugin.php 2 locations

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