@@ -159,17 +159,17 @@ |
||
| 159 | 159 | |
| 160 | 160 | $valid_character_string = implode(static::$unencoded_characters); |
| 161 | 161 | |
| 162 | - static::$part_pattern = '([\w'; //start decoded group |
|
| 162 | + static::$part_pattern = '([\w'; //start decoded group |
|
| 163 | 163 | |
| 164 | - static::$part_pattern = static::$part_pattern . preg_quote($valid_character_string, "/"); |
|
| 164 | + static::$part_pattern = static::$part_pattern.preg_quote($valid_character_string, "/"); |
|
| 165 | 165 | |
| 166 | - static::$part_pattern = static::$part_pattern . |
|
| 167 | - ']|' . //predefined patterns or percent-encoding |
|
| 168 | - self::$pct_encoded_pattern . |
|
| 166 | + static::$part_pattern = static::$part_pattern. |
|
| 167 | + ']|'.//predefined patterns or percent-encoding |
|
| 168 | + self::$pct_encoded_pattern. |
|
| 169 | 169 | ')*'; |
| 170 | 170 | |
| 171 | - static::$valid_pattern = '/^$|^' . //allows part to be empty |
|
| 172 | - static::$part_pattern . |
|
| 171 | + static::$valid_pattern = '/^$|^'.//allows part to be empty |
|
| 172 | + static::$part_pattern. |
|
| 173 | 173 | '$/'; |
| 174 | 174 | } |
| 175 | 175 | |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | */ |
| 98 | 98 | public function __toString() |
| 99 | 99 | { |
| 100 | - return $this->user_info->toUriString() . $this->host->toUriString() . $this->port->toUriString(); |
|
| 100 | + return $this->user_info->toUriString().$this->host->toUriString().$this->port->toUriString(); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -111,15 +111,15 @@ discard block |
||
| 111 | 111 | $host_pattern = Host::getValidPattern(); |
| 112 | 112 | $port_pattern = Port::getValidPattern(); |
| 113 | 113 | |
| 114 | - $reg_start = '/^$|^'; //allow for empty authority |
|
| 114 | + $reg_start = '/^$|^'; //allow for empty authority |
|
| 115 | 115 | $reg_end = '/'; |
| 116 | 116 | |
| 117 | 117 | self::$part_pattern = |
| 118 | - '(' . $user_info_pattern . '@)?' . |
|
| 119 | - $host_pattern . |
|
| 120 | - '(:' . $port_pattern . ')?'; |
|
| 118 | + '('.$user_info_pattern.'@)?'. |
|
| 119 | + $host_pattern. |
|
| 120 | + '(:'.$port_pattern.')?'; |
|
| 121 | 121 | |
| 122 | - self::$valid_pattern = $reg_start . self::$part_pattern . $reg_end; |
|
| 122 | + self::$valid_pattern = $reg_start.self::$part_pattern.$reg_end; |
|
| 123 | 123 | } |
| 124 | 124 | |
| 125 | 125 | /** |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | $port_part = '(?::(?\'port\'[0-9]+))?'; |
| 141 | 141 | $reg_end = '/'; |
| 142 | 142 | |
| 143 | - $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end; |
|
| 143 | + $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end; |
|
| 144 | 144 | |
| 145 | 145 | preg_match($authority_syntax, $authority, $authority_parts); |
| 146 | 146 | |