Skip to content

Commit

Permalink
Improve URI internal codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Jun 30, 2024
1 parent 2b3e47d commit ef0c29f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -716,16 +716,16 @@ private static function fetchRequestUri(array $server): array
private function setAuthority(): ?string
{
$authority = null;
if (null !== $this->userInfo) {
$authority = $this->userInfo.'@';
if (null !== $this->host) {
$authority = $this->host;
}

if (null !== $this->host) {
$authority .= $this->host;
if (null !== $this->userInfo) {
$authority = $this->userInfo.'@'.$authority;
}

if (null !== $this->port) {
$authority .= ':'.$this->port;
return $authority.':'.$this->port;
}

return $authority;
Expand Down

0 comments on commit ef0c29f

Please sign in to comment.