@@ -132,9 +132,9 @@ discard block |
||
| 132 | 132 | { |
| 133 | 133 | $authority = $this->host->toUriString(); |
| 134 | 134 | |
| 135 | - $authority = $this->user_info->toUriString() . $authority; |
|
| 135 | + $authority = $this->user_info->toUriString().$authority; |
|
| 136 | 136 | |
| 137 | - $authority = $authority . $this->port->toUriString($this->scheme); |
|
| 137 | + $authority = $authority.$this->port->toUriString($this->scheme); |
|
| 138 | 138 | |
| 139 | 139 | return $authority; |
| 140 | 140 | } |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | public function getPath() |
| 226 | 226 | { |
| 227 | 227 | $path_unencoded = array("/"); |
| 228 | - $allowed = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded); |
|
| 228 | + $allowed = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded); |
|
| 229 | 229 | |
| 230 | 230 | if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) { |
| 231 | 231 | $encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded); |
@@ -546,7 +546,7 @@ discard block |
||
| 546 | 546 | $fragment_part = '(?:#(?\'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 | |
@@ -581,7 +581,7 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -694,7 +694,7 @@ discard block |
||
| 694 | 694 | $authority_string = ""; |
| 695 | 695 | |
| 696 | 696 | if (!empty($authority)) { |
| 697 | - $authority_string .= "//" . $authority; |
|
| 697 | + $authority_string .= "//".$authority; |
|
| 698 | 698 | } |
| 699 | 699 | |
| 700 | 700 | return $authority_string; |
@@ -721,7 +721,7 @@ discard block |
||
| 721 | 721 | $path_string .= $collapsed_slashes; |
| 722 | 722 | } elseif (!empty($path)) { |
| 723 | 723 | if (!$path_string_helper->startsWith("/")) { |
| 724 | - $path_string .= "/" . $path; |
|
| 724 | + $path_string .= "/".$path; |
|
| 725 | 725 | } else { |
| 726 | 726 | $path_string .= $path; |
| 727 | 727 | } |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | */ |
| 101 | 101 | public function __toString() |
| 102 | 102 | { |
| 103 | - return $this->user_info->toUriString() . $this->host->toUriString() . $this->port->toUriString(); |
|
| 103 | + return $this->user_info->toUriString().$this->host->toUriString().$this->port->toUriString(); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -114,15 +114,15 @@ discard block |
||
| 114 | 114 | $host_pattern = Host::getValidPattern(); |
| 115 | 115 | $port_pattern = Port::getValidPattern(); |
| 116 | 116 | |
| 117 | - $reg_start = '/^$|^'; //allow for empty authority |
|
| 117 | + $reg_start = '/^$|^'; //allow for empty authority |
|
| 118 | 118 | $reg_end = '$/'; |
| 119 | 119 | |
| 120 | 120 | self::$part_pattern = |
| 121 | - '((?\'user_info\'' . $user_info_pattern . ')@)?' . |
|
| 122 | - '(?\'host\'' . $host_pattern . ')' . |
|
| 123 | - '(:(?\'port\'' . $port_pattern . '))?'; |
|
| 121 | + '((?\'user_info\''.$user_info_pattern.')@)?'. |
|
| 122 | + '(?\'host\''.$host_pattern.')'. |
|
| 123 | + '(:(?\'port\''.$port_pattern.'))?'; |
|
| 124 | 124 | |
| 125 | - self::$valid_pattern = $reg_start . self::$part_pattern . $reg_end; |
|
| 125 | + self::$valid_pattern = $reg_start.self::$part_pattern.$reg_end; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | /** |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | $port_part = '(?::(?\'port\'[0-9]+))?'; |
| 144 | 144 | $reg_end = '/'; |
| 145 | 145 | |
| 146 | - $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end; |
|
| 146 | + $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end; |
|
| 147 | 147 | |
| 148 | 148 | preg_match($authority_syntax, $authority, $authority_parts); |
| 149 | 149 | |
@@ -162,18 +162,18 @@ |
||
| 162 | 162 | $valid_characters = implode(static::$unencoded_characters); |
| 163 | 163 | |
| 164 | 164 | if (empty(static::$part_pattern)) { |
| 165 | - static::$part_pattern = '([\w'; //start decoded group |
|
| 165 | + static::$part_pattern = '([\w'; //start decoded group |
|
| 166 | 166 | |
| 167 | - static::$part_pattern = static::$part_pattern . preg_quote($valid_characters, "/"); |
|
| 167 | + static::$part_pattern = static::$part_pattern.preg_quote($valid_characters, "/"); |
|
| 168 | 168 | |
| 169 | - static::$part_pattern = static::$part_pattern . |
|
| 170 | - ']|' . //predefined patterns or percent-encoding |
|
| 171 | - self::$pct_encoded_pattern . |
|
| 169 | + static::$part_pattern = static::$part_pattern. |
|
| 170 | + ']|'.//predefined patterns or percent-encoding |
|
| 171 | + self::$pct_encoded_pattern. |
|
| 172 | 172 | ')*'; |
| 173 | 173 | } |
| 174 | 174 | |
| 175 | - static::$valid_pattern = '/^$|^' . //allows part to be empty |
|
| 176 | - static::$part_pattern . |
|
| 175 | + static::$valid_pattern = '/^$|^'.//allows part to be empty |
|
| 176 | + static::$part_pattern. |
|
| 177 | 177 | '$/'; |
| 178 | 178 | } |
| 179 | 179 | |
@@ -78,15 +78,15 @@ |
||
| 78 | 78 | { |
| 79 | 79 | self::compileUnencodedCharacters(); |
| 80 | 80 | |
| 81 | - $valid_characters = self::$unreserved_pattern . self::$sub_delims_pattern; |
|
| 81 | + $valid_characters = self::$unreserved_pattern.self::$sub_delims_pattern; |
|
| 82 | 82 | |
| 83 | - $ip_v_future_pattern = '\[[\:' . $valid_characters . ']+\]'; |
|
| 83 | + $ip_v_future_pattern = '\[[\:'.$valid_characters.']+\]'; |
|
| 84 | 84 | |
| 85 | - $reg_name_pattern = '([' . $valid_characters . ']|' . self::$pct_encoded_pattern . ')*'; |
|
| 85 | + $reg_name_pattern = '(['.$valid_characters.']|'.self::$pct_encoded_pattern.')*'; |
|
| 86 | 86 | |
| 87 | - self::$part_pattern = $ip_v_future_pattern . '|'. $reg_name_pattern; |
|
| 87 | + self::$part_pattern = $ip_v_future_pattern.'|'.$reg_name_pattern; |
|
| 88 | 88 | |
| 89 | - self::$valid_pattern = '/^$|^' . //allows part to be empty |
|
| 90 | - $ip_v_future_pattern . '$|^' . $reg_name_pattern . '$/'; |
|
| 89 | + self::$valid_pattern = '/^$|^'.//allows part to be empty |
|
| 90 | + $ip_v_future_pattern.'$|^'.$reg_name_pattern.'$/'; |
|
| 91 | 91 | } |
| 92 | 92 | } |