Completed
Push — master ( 01450d...eeca38 )
by Derek
02:19
created
src/Anshar/Http/Uri.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -511,8 +511,7 @@  discard block
 block discarded – undo
511 511
      */
512 512
     private function explodeUri($uri)
513 513
     {
514
-        $uri_parts = array
515
-        (
514
+        $uri_parts = array(
516 515
             "scheme"    => "",
517 516
             "hier_part" => "",
518 517
             "authority" => "",
@@ -547,7 +546,7 @@  discard block
 block discarded – undo
547 546
         $fragment_part  = '(?:#(?\'fragment\'.*))?';
548 547
         $reg_end        = '/';
549 548
 
550
-        return $reg_start . $scheme_part . $authority_part . $path_part . $query_part . $fragment_part . $reg_end;
549
+        return $reg_start.$scheme_part.$authority_part.$path_part.$query_part.$fragment_part.$reg_end;
551 550
     }
552 551
 
553 552
     /**
Please login to merge, or discard this patch.