Skip to content

Commit

Permalink
Merge branch '2.0' into 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Nov 3, 2023
2 parents d7263fa + 5f0885b commit 1005e02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Gateway/Endpoint.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,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 @@ -111,6 +109,8 @@ 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();
}
}

0 comments on commit 1005e02

Please sign in to comment.