|
@@ -129,12 +129,12 @@ discard block |
|
|
block discarded – undo |
|
129
|
129
|
{ |
|
130
|
130
|
$normalized_authority = $this->host->toUriString(); |
|
131
|
131
|
|
|
132
|
|
- $normalized_authority = $this->user_info->toUriString() . $normalized_authority; |
|
|
132
|
+ $normalized_authority = $this->user_info->toUriString().$normalized_authority; |
|
133
|
133
|
|
|
134
|
134
|
$normalized_port = $this->normalizePort(); |
|
135
|
135
|
|
|
136
|
136
|
if (!is_null($normalized_port)) { |
|
137
|
|
- $normalized_authority = $normalized_authority . ":" . $normalized_port; |
|
|
137
|
+ $normalized_authority = $normalized_authority.":".$normalized_port; |
|
138
|
138
|
} |
|
139
|
139
|
|
|
140
|
140
|
return $normalized_authority; |
|
@@ -226,7 +226,7 @@ discard block |
|
|
block discarded – undo |
|
226
|
226
|
public function getPath() |
|
227
|
227
|
{ |
|
228
|
228
|
$path_unencoded = array("/"); |
|
229
|
|
- $allowed = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded); |
|
|
229
|
+ $allowed = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded); |
|
230
|
230
|
|
|
231
|
231
|
if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) { |
|
232
|
232
|
$encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded); |
|
@@ -547,7 +547,7 @@ discard block |
|
|
block discarded – undo |
|
547
|
547
|
$fragment_part = '(?:#(?\'fragment\'.*))?'; |
|
548
|
548
|
$reg_end = '/'; |
|
549
|
549
|
|
|
550
|
|
- $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end; |
|
|
550
|
+ $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end; |
|
551
|
551
|
|
|
552
|
552
|
$uri_valid = preg_match($uri_syntax, $uri, $parts); |
|
553
|
553
|
|
|
@@ -581,7 +581,7 @@ discard block |
|
|
block discarded – undo |
|
581
|
581
|
$path_part = '(?\'path\'.+)?'; |
|
582
|
582
|
$reg_end = '/'; |
|
583
|
583
|
|
|
584
|
|
- $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end; |
|
|
584
|
+ $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end; |
|
585
|
585
|
|
|
586
|
586
|
preg_match($hier_part_syntax, $hier_part, $hier_parts); |
|
587
|
587
|
|
|
@@ -612,7 +612,7 @@ discard block |
|
|
block discarded – undo |
|
612
|
612
|
$port_part = '(?::(?\'port\'[0-9]+))?'; |
|
613
|
613
|
$reg_end = '/'; |
|
614
|
614
|
|
|
615
|
|
- $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end; |
|
|
615
|
+ $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end; |
|
616
|
616
|
|
|
617
|
617
|
preg_match($authority_syntax, $authority, $authority_parts); |
|
618
|
618
|
|
|
@@ -715,7 +715,7 @@ discard block |
|
|
block discarded – undo |
|
715
|
715
|
$authority_string = ""; |
|
716
|
716
|
|
|
717
|
717
|
if (!empty($authority)) { |
|
718
|
|
- $authority_string .= "//" . $authority; |
|
|
718
|
+ $authority_string .= "//".$authority; |
|
719
|
719
|
} |
|
720
|
720
|
|
|
721
|
721
|
return $authority_string; |
|
@@ -742,7 +742,7 @@ discard block |
|
|
block discarded – undo |
|
742
|
742
|
$path_string .= $collapsed_slashes; |
|
743
|
743
|
} elseif (!empty($path)) { |
|
744
|
744
|
if (!$path_string_helper->startsWith("/")) { |
|
745
|
|
- $path_string .= "/" . $path; |
|
|
745
|
+ $path_string .= "/".$path; |
|
746
|
746
|
} else { |
|
747
|
747
|
$path_string .= $path; |
|
748
|
748
|
} |