Skip to content

Commit 85563a3

Browse files
committed
re-run rector for remove just variabel used for assign variable
1 parent 40c0e92 commit 85563a3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

system/HTTP/URI.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -661,10 +661,8 @@ public function setAuthority(string $str)
661661
*/
662662
public function setScheme(string $str)
663663
{
664-
$str = strtolower($str);
665-
$str = preg_replace('#:(//)?$#', '', $str);
666-
667-
$this->scheme = $str;
664+
$str = strtolower($str);
665+
$this->scheme = preg_replace('#:(//)?$#', '', $str);
668666

669667
return $this;
670668
}
@@ -932,8 +930,7 @@ protected function applyParts(array $parts)
932930
// Port
933931
if (isset($parts['port']) && $parts['port'] !== null) {
934932
// Valid port numbers are enforced by earlier parse_url or setPort()
935-
$port = $parts['port'];
936-
$this->port = $port;
933+
$this->port = $parts['port'];
937934
}
938935

939936
if (isset($parts['pass'])) {

0 commit comments

Comments
 (0)