@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | */ |
| 108 | 108 | public function getAuthority() |
| 109 | 109 | { |
| 110 | - return $this->user_info->toUriString() . $this->host->toUriString() . $this->port->toUriString($this->scheme); |
|
| 110 | + return $this->user_info->toUriString().$this->host->toUriString().$this->port->toUriString($this->scheme); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -317,14 +317,14 @@ discard block |
||
| 317 | 317 | public function withUserInfo($user, $password = null) |
| 318 | 318 | { |
| 319 | 319 | if (!empty($password)) { |
| 320 | - $user_info = $user . ":" . $password; |
|
| 320 | + $user_info = $user.":".$password; |
|
| 321 | 321 | } else { |
| 322 | 322 | $user_info = $user; |
| 323 | 323 | } |
| 324 | 324 | |
| 325 | 325 | $with_user_info = new UserInfo($user_info); |
| 326 | 326 | |
| 327 | - $authority_string = $with_user_info->toUriString() . $this->host->toUriString() . $this->port->toUriString(); |
|
| 327 | + $authority_string = $with_user_info->toUriString().$this->host->toUriString().$this->port->toUriString(); |
|
| 328 | 328 | |
| 329 | 329 | $new_user_info_uri = $this->withAuthority($authority_string); |
| 330 | 330 | |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $with_host_port = $this->port->toUriString(); |
| 356 | 356 | } |
| 357 | 357 | |
| 358 | - $authority_string = $with_host_user_info . $with_host->toUriString() . $with_host_port; |
|
| 358 | + $authority_string = $with_host_user_info.$with_host->toUriString().$with_host_port; |
|
| 359 | 359 | |
| 360 | 360 | $new_host_uri = $this->withAuthority($authority_string); |
| 361 | 361 | |
@@ -383,7 +383,7 @@ discard block |
||
| 383 | 383 | { |
| 384 | 384 | $with_port = new Port($port); |
| 385 | 385 | |
| 386 | - $authority_string = $this->user_info->toUriString() . $this->host->toUriString() . $with_port->toUriString(); |
|
| 386 | + $authority_string = $this->user_info->toUriString().$this->host->toUriString().$with_port->toUriString(); |
|
| 387 | 387 | |
| 388 | 388 | $new_port_uri = $this->withAuthority($authority_string); |
| 389 | 389 | |
@@ -517,8 +517,7 @@ discard block |
||
| 517 | 517 | */ |
| 518 | 518 | private function explodeUri($uri) |
| 519 | 519 | { |
| 520 | - $uri_parts = array |
|
| 521 | - ( |
|
| 520 | + $uri_parts = array( |
|
| 522 | 521 | "scheme" => "", |
| 523 | 522 | "hier_part" => "", |
| 524 | 523 | "authority" => "", |
@@ -553,7 +552,7 @@ discard block |
||
| 553 | 552 | $fragment_part = '(?:#(?\'fragment\'.*))?'; |
| 554 | 553 | $reg_end = '/'; |
| 555 | 554 | |
| 556 | - return $reg_start . $scheme_part . $authority_part . $path_part . $query_part . $fragment_part . $reg_end; |
|
| 555 | + return $reg_start.$scheme_part.$authority_part.$path_part.$query_part.$fragment_part.$reg_end; |
|
| 557 | 556 | } |
| 558 | 557 | |
| 559 | 558 | /** |