Skip to content

Commit 1337d6f

Browse files
committed
refactor: run rector
1 parent 0d47aea commit 1337d6f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

system/HTTP/OutgoingRequest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ public function __construct(
5959
private function getHostFromUri(URI $uri): string
6060
{
6161
$host = $uri->getHost();
62-
$host .= $uri->getPort() ? ':' . $uri->getPort() : '';
6362

64-
return $host;
63+
return $host . ($uri->getPort() ? ':' . $uri->getPort() : '');
6564
}
6665

6766
/**
@@ -157,6 +156,6 @@ private function isHostHeaderMissingOrEmpty(): bool
157156
return true;
158157
}
159158

160-
return (bool) ($this->header('Host')->getValue() === '');
159+
return $this->header('Host')->getValue() === '';
161160
}
162161
}

0 commit comments

Comments
 (0)