Skip to content

Commit

Permalink
re-run rector for remove just variabel used for assign variable
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jul 7, 2022
1 parent 40c0e92 commit 85563a3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions system/HTTP/URI.php
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,8 @@ public function setAuthority(string $str)
*/
public function setScheme(string $str)
{
$str = strtolower($str);
$str = preg_replace('#:(//)?$#', '', $str);

$this->scheme = $str;
$str = strtolower($str);
$this->scheme = preg_replace('#:(//)?$#', '', $str);

return $this;
}
Expand Down Expand Up @@ -932,8 +930,7 @@ protected function applyParts(array $parts)
// Port
if (isset($parts['port']) && $parts['port'] !== null) {
// Valid port numbers are enforced by earlier parse_url or setPort()
$port = $parts['port'];
$this->port = $port;
$this->port = $parts['port'];
}

if (isset($parts['pass'])) {
Expand Down

0 comments on commit 85563a3

Please sign in to comment.