Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mtagliab committed Sep 30, 2019
1 parent 1f4b6c7 commit 1a0e92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,10 @@ public function parse($uri)
if ($nMatches === 1) {
$portLength = strlen($matches[0]);
$port = substr($matches[0], 1);

// If authority ends with colon, port will be empty string.
// Remove the colon from authority, but keeps port null
if($port !== ''){
if ($port !== '') {
$this->setPort((int) $port);
}

Expand Down

0 comments on commit 1a0e92b

Please sign in to comment.