Skip to content

Commit

Permalink
refactor: inline variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adevade committed Jan 31, 2023
1 parent 998f0cd commit 58af04c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/UrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,12 @@ public function setIncludeLibraryParam($includeLibraryParam)
public function createURL($path, $params = [])
{
$scheme = $this->useHttps ? 'https' : 'http';
$domain = $this->domain;

if ($this->includeLibraryParam) {
$params['ixlib'] = 'php-'.static::VERSION;
}

$uh = new UrlHelper($domain, $path, $scheme, $this->signKey, $params);
$uh = new UrlHelper($this->domain, $path, $scheme, $this->signKey, $params);

return $uh->getURL();
}
Expand Down

0 comments on commit 58af04c

Please sign in to comment.