src/Tool/ProviderRedirectTrait.php
protected function isRedirect(ResponseInterface $response)
    {
        $statusCode = $response->getStatusCode();

        return $statusCode > 300 && $statusCode < 400 && $response->hasHeader('Location');
    }
protected function isRedirect(ResponseInterface $response)
    {
        $statusCode = $response->getStatusCode();

        return $statusCode > 300 && $statusCode < 400 && $response->hasHeader('Location');
    }
protected function isRedirect ( ResponseInterface $ response ) { $ statusCode = $ response -> getStatusCode ( ) ; return $ statusCode > 300 && $ statusCode < 400 && $ response -> hasHeader ( 'Location' ) ; }
Determines if a given response is a redirect.

@param  ResponseInterface  $response

@return boolean
Determines if a given response is a redirect .