Apply fixes from StyleCI

This commit is contained in:
Marcel Pociot
2020-11-01 21:40:32 +00:00
committed by StyleCI Bot
parent cec52c4229
commit 5595a9de3d
5 changed files with 20 additions and 21 deletions

View File

@@ -92,7 +92,7 @@ class HttpClient
])
->send($request)
->then(function (ResponseInterface $response) use ($proxyConnection) {
if (!isset($response->buffer)) {
if (! isset($response->buffer)) {
$response = $this->rewriteResponseHeaders($response);
$response->buffer = str($response);
@@ -139,13 +139,13 @@ class HttpClient
protected function rewriteResponseHeaders(ResponseInterface $response)
{
if (!$response->hasHeader('Location')) {
if (! $response->hasHeader('Location')) {
return $response;
}
$location = $response->getHeaderLine('Location');
if (!strstr($location, $this->connectionData->host)) {
if (! strstr($location, $this->connectionData->host)) {
return $response;
}