@@ -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); |
@@ -509,21 +509,21 @@ discard block |
||
| 509 | 509 | $path_string_helper = new StringHelper($uri_parts["path"]); |
| 510 | 510 | |
| 511 | 511 | if (!empty($uri_parts["scheme"])) { |
| 512 | - $uri_string .= $uri_parts["scheme"] . ":"; |
|
| 512 | + $uri_string .= $uri_parts["scheme"].":"; |
|
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | if (!empty($uri_parts["authority"])) { |
| 516 | - $uri_string .= "//" . $uri_parts["authority"]; |
|
| 516 | + $uri_string .= "//".$uri_parts["authority"]; |
|
| 517 | 517 | } |
| 518 | 518 | |
| 519 | 519 | $uri_string .= $this->pathToString($uri_parts["path"], $uri_parts["authority"]); |
| 520 | 520 | |
| 521 | 521 | if (!empty($uri_parts["query"])) { |
| 522 | - $uri_string .= "?" . $uri_parts["query"]; |
|
| 522 | + $uri_string .= "?".$uri_parts["query"]; |
|
| 523 | 523 | } |
| 524 | 524 | |
| 525 | 525 | if (!empty($uri_parts["fragment"])) { |
| 526 | - $uri_string .= "#" . $uri_parts["fragment"]; |
|
| 526 | + $uri_string .= "#".$uri_parts["fragment"]; |
|
| 527 | 527 | } |
| 528 | 528 | |
| 529 | 529 | return $uri_string; |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | $fragment_part = '(?:#(?P<fragment>.*))?'; |
| 547 | 547 | $reg_end = '/'; |
| 548 | 548 | |
| 549 | - $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end; |
|
| 549 | + $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end; |
|
| 550 | 550 | |
| 551 | 551 | $uri_valid = preg_match($uri_syntax, $uri, $parts); |
| 552 | 552 | |
@@ -574,7 +574,7 @@ discard block |
||
| 574 | 574 | $path_part = '(?P<path>.+)?'; |
| 575 | 575 | $reg_end = '/'; |
| 576 | 576 | |
| 577 | - $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end; |
|
| 577 | + $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end; |
|
| 578 | 578 | |
| 579 | 579 | preg_match($hier_part_syntax, $hier_part, $hier_parts); |
| 580 | 580 | |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | $port_part = '(?::(?P<port>[0-9]+))?'; |
| 606 | 606 | $reg_end = '/'; |
| 607 | 607 | |
| 608 | - $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end; |
|
| 608 | + $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end; |
|
| 609 | 609 | |
| 610 | 610 | preg_match($authority_syntax, $authority, $authority_parts); |
| 611 | 611 | |
@@ -705,7 +705,7 @@ discard block |
||
| 705 | 705 | $path_string .= $collapsed_slashes; |
| 706 | 706 | } elseif (!empty($path)) { |
| 707 | 707 | if (!$path_string_helper->startsWith("/")) { |
| 708 | - $path_string .= "/" . $path; |
|
| 708 | + $path_string .= "/".$path; |
|
| 709 | 709 | } else { |
| 710 | 710 | $path_string .= $path; |
| 711 | 711 | } |