Completed
Push — master ( 15cc44...023ce1 )
by Derek
02:07
created
src/Anshar/Http/Uri.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -122,13 +122,13 @@  discard block
 block discarded – undo
122 122
         $normalized_authority = $this->uri_parts["host"];
123 123
 
124 124
         if (!empty($this->uri_parts["user_info"])) {
125
-            $normalized_authority = $this->uri_parts["user_info"] . "@" . $normalized_authority;
125
+            $normalized_authority = $this->uri_parts["user_info"]."@".$normalized_authority;
126 126
         }
127 127
 
128 128
         $normalized_port = $this->normalizePort();
129 129
 
130 130
         if (!is_null($normalized_port)) {
131
-            $normalized_authority = $normalized_authority . ":" . $normalized_port;
131
+            $normalized_authority = $normalized_authority.":".$normalized_port;
132 132
         }
133 133
 
134 134
         return $normalized_authority;
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
     public function getPath()
221 221
     {
222 222
         $path_unencoded = array("/");
223
-        $allowed        = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded);
223
+        $allowed        = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded);
224 224
 
225 225
         if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) {
226 226
             $encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded);
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
         $fragment_part = '(?:#(?P<fragment>.*))?';
546 546
         $reg_end       = '/';
547 547
 
548
-        $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end;
548
+        $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end;
549 549
 
550 550
         $uri_valid = preg_match($uri_syntax, $uri, $parts);
551 551
 
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
         $path_part      = '(?P<path>.+)?';
577 577
         $reg_end        = '/';
578 578
 
579
-        $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end;
579
+        $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end;
580 580
 
581 581
         preg_match($hier_part_syntax, $hier_part, $hier_parts);
582 582
 
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
         $port_part      = '(?::(?P<port>[0-9]+))?';
608 608
         $reg_end        = '/';
609 609
 
610
-        $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end;
610
+        $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end;
611 611
 
612 612
         preg_match($authority_syntax, $authority, $authority_parts);
613 613
 
@@ -710,7 +710,7 @@  discard block
 block discarded – undo
710 710
         $authority_string = "";
711 711
 
712 712
         if (!empty($authority)) {
713
-            $authority_string .= "//" . $authority;
713
+            $authority_string .= "//".$authority;
714 714
         }
715 715
 
716 716
         return $authority_string;
@@ -737,7 +737,7 @@  discard block
 block discarded – undo
737 737
             $path_string .= $collapsed_slashes;
738 738
         } elseif (!empty($path)) {
739 739
             if (!$path_string_helper->startsWith("/")) {
740
-                $path_string .= "/" . $path;
740
+                $path_string .= "/".$path;
741 741
             } else {
742 742
                 $path_string .= $path;
743 743
             }
@@ -760,7 +760,7 @@  discard block
 block discarded – undo
760 760
         $fragment_string = "";
761 761
 
762 762
         if (!empty($fragment)) {
763
-            $fragment_string .= "#" . $fragment;
763
+            $fragment_string .= "#".$fragment;
764 764
         }
765 765
 
766 766
         return $fragment_string;
Please login to merge, or discard this patch.