Skip to content

Commit

Permalink
Merge pull request #4 from gouaille/fix
Browse files Browse the repository at this point in the history
Fixing a missing return call on the Client
  • Loading branch information
frenchcomp authored Jul 24, 2017
2 parents 19c939d + 0773a3f commit 2f69345
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,27 +263,27 @@ private function getUri(): UriInterface
$uri = $this->getNewUri();

if (!empty($this->apiUrl['scheme'])) {
$uri->withScheme($this->apiUrl['scheme']);
$uri = $uri->withScheme($this->apiUrl['scheme']);
}

if (!empty($this->apiUrl['host'])) {
$uri->withHost($this->apiUrl['host']);
$uri = $uri->withHost($this->apiUrl['host']);
}

if (!empty($this->apiUrl['port'])) {
$uri->withPort($this->apiUrl['port']);
$uri = $uri->withPort($this->apiUrl['port']);
}

if (!empty($this->apiUrl['path'])) {
$uri->withPath($this->apiUrl['path']);
$uri = $uri->withPath($this->apiUrl['path']);
}

if (!empty($this->apiUrl['query'])) {
$uri->withQuery($this->apiUrl['query']);
$uri = $uri->withQuery($this->apiUrl['query']);
}

if (!empty($this->apiUrl['fragment'])) {
$uri->withFragment($this->apiUrl['fragment']);
$uri = $uri->withFragment($this->apiUrl['fragment']);
}

return $uri;
Expand Down

0 comments on commit 2f69345

Please sign in to comment.