Skip to content

Commit

Permalink
refactor for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed May 11, 2018
1 parent 1b4b008 commit c7d8ebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Url.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ public function getHostName(): string

public function getPort(): int
{
return array_key_exists('port', $this->parsedUrl) ? (int) $this->parsedUrl['port'] : 443;
return $this->parsedUrl['port'] ?? 443;
}
}

0 comments on commit c7d8ebe

Please sign in to comment.