@@ -111,13 +111,13 @@ discard block |
||
111 | 111 | $normalized_authority = $this->uri_parts["host"]; |
112 | 112 | |
113 | 113 | if (!empty($this->uri_parts["user_info"])) { |
114 | - $normalized_authority = $this->uri_parts["user_info"] . "@" . $normalized_authority; |
|
114 | + $normalized_authority = $this->uri_parts["user_info"]."@".$normalized_authority; |
|
115 | 115 | } |
116 | 116 | |
117 | 117 | $normalized_port = $this->normalizePort(); |
118 | 118 | |
119 | 119 | if (!is_null($normalized_port)) { |
120 | - $normalized_authority = $normalized_authority . ":" . $normalized_port; |
|
120 | + $normalized_authority = $normalized_authority.":".$normalized_port; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | return $normalized_authority; |
@@ -209,7 +209,7 @@ discard block |
||
209 | 209 | public function getPath() |
210 | 210 | { |
211 | 211 | $path_unencoded = array("/"); |
212 | - $allowed = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded); |
|
212 | + $allowed = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded); |
|
213 | 213 | |
214 | 214 | if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) { |
215 | 215 | $encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded); |
@@ -508,21 +508,21 @@ discard block |
||
508 | 508 | $uri_string = ""; |
509 | 509 | |
510 | 510 | if (!empty($uri_parts["scheme"])) { |
511 | - $uri_string .= $uri_parts["scheme"] . ":"; |
|
511 | + $uri_string .= $uri_parts["scheme"].":"; |
|
512 | 512 | } |
513 | 513 | |
514 | 514 | if (!empty($uri_parts["authority"])) { |
515 | - $uri_string .= "//" . $uri_parts["authority"]; |
|
515 | + $uri_string .= "//".$uri_parts["authority"]; |
|
516 | 516 | } |
517 | 517 | |
518 | 518 | $uri_string .= $this->pathToString($uri_parts["path"], $uri_parts["authority"]); |
519 | 519 | |
520 | 520 | if (!empty($uri_parts["query"])) { |
521 | - $uri_string .= "?" . $uri_parts["query"]; |
|
521 | + $uri_string .= "?".$uri_parts["query"]; |
|
522 | 522 | } |
523 | 523 | |
524 | 524 | if (!empty($uri_parts["fragment"])) { |
525 | - $uri_string .= "#" . $uri_parts["fragment"]; |
|
525 | + $uri_string .= "#".$uri_parts["fragment"]; |
|
526 | 526 | } |
527 | 527 | |
528 | 528 | return $uri_string; |
@@ -545,7 +545,7 @@ discard block |
||
545 | 545 | $fragment_part = '(?:#(?P<fragment>.*))?'; |
546 | 546 | $reg_end = '/'; |
547 | 547 | |
548 | - $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end; |
|
548 | + $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end; |
|
549 | 549 | |
550 | 550 | $uri_valid = preg_match($uri_syntax, $uri, $parts); |
551 | 551 | |
@@ -573,7 +573,7 @@ discard block |
||
573 | 573 | $path_part = '(?P<path>.+)?'; |
574 | 574 | $reg_end = '/'; |
575 | 575 | |
576 | - $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end; |
|
576 | + $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end; |
|
577 | 577 | |
578 | 578 | preg_match($hier_part_syntax, $hier_part, $hier_parts); |
579 | 579 | |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | $port_part = '(?::(?P<port>[0-9]+))?'; |
605 | 605 | $reg_end = '/'; |
606 | 606 | |
607 | - $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end; |
|
607 | + $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end; |
|
608 | 608 | |
609 | 609 | preg_match($authority_syntax, $authority, $authority_parts); |
610 | 610 | |
@@ -704,7 +704,7 @@ discard block |
||
704 | 704 | $path_string .= $collapsed_slashes; |
705 | 705 | } elseif (!empty($path)) { |
706 | 706 | if (!$path_string_helper->startsWith("/")) { |
707 | - $path_string .= "/" . $path; |
|
707 | + $path_string .= "/".$path; |
|
708 | 708 | } else { |
709 | 709 | $path_string .= $path; |
710 | 710 | } |