Skip to content

Commit

Permalink
Merge branch '4.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Nov 3, 2023
2 parents 9040c5d + 2f8b711 commit a13811e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/Gateway/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,7 @@ public function __construct(array $properties = [])
*/
public function getIdentifier()
{
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');

return "{$authorization}{$this->host}:{$this->port}{$this->path}/{$this->core}";
return "{$this->host}:{$this->port}{$this->path}/{$this->core}";
}

/**
Expand All @@ -107,7 +105,9 @@ public function getIdentifier()
*/
public function getURL()
{
return "{$this->scheme}://" . $this->getIdentifier();
$authorization = (!empty($this->user) ? "{$this->user}:{$this->pass}@" : '');

return "{$this->scheme}://" . $authorization . $this->getIdentifier();
}
}

Expand Down

0 comments on commit a13811e

Please sign in to comment.