Skip to content

Commit

Permalink
Merge branch '1.7' into 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
glye committed Nov 3, 2023
2 parents 25d33ec + c382037 commit 5f0885b
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 5f0885b

Please # to comment.