@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | { |
| 13 | 13 | use SchemePortsTrait; |
| 14 | 14 | |
| 15 | - protected $port = null; |
|
| 15 | + protected $port = null; |
|
| 16 | 16 | |
| 17 | 17 | protected static $valid_pattern = '/^[0-9]{0,4}$/'; |
| 18 | 18 | |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $uri_string = (string) $normalized_port; |
| 100 | 100 | |
| 101 | 101 | if (!is_null($normalized_port)) { |
| 102 | - $uri_string = ":" . $uri_string; |
|
| 102 | + $uri_string = ":".$uri_string; |
|
| 103 | 103 | } |
| 104 | 104 | |
| 105 | 105 | return $uri_string; |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | public static function getValidPattern() |
| 90 | 90 | { |
| 91 | 91 | static::compileValidPattern(); |
| 92 | - echo static::$valid_pattern . "\n"; |
|
| 92 | + echo static::$valid_pattern."\n"; |
|
| 93 | 93 | |
| 94 | 94 | return static::$valid_pattern; |
| 95 | 95 | } |
@@ -160,11 +160,11 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | $part_pattern = preg_quote($valid_character_string, "/"); |
| 162 | 162 | |
| 163 | - static::$valid_pattern = '/^$|' . //allows part to be empty |
|
| 164 | - '^([\w' . //start decoded group |
|
| 165 | - $part_pattern . |
|
| 166 | - ']|' . //predefined patterns or percent-encoding |
|
| 167 | - self::$pct_encoded_pattern . |
|
| 163 | + static::$valid_pattern = '/^$|'.//allows part to be empty |
|
| 164 | + '^([\w'.//start decoded group |
|
| 165 | + $part_pattern. |
|
| 166 | + ']|'.//predefined patterns or percent-encoding |
|
| 167 | + self::$pct_encoded_pattern. |
|
| 168 | 168 | ')*$/'; |
| 169 | 169 | } |
| 170 | 170 | |