Completed
Push — master ( b48c57...3b20ab )
by Derek
02:12
created
src/Anshar/Http/Uri.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
         $normalized_authority = $this->uri_parts["host"];
112 112
 
113 113
         if (!empty($this->uri_parts["user_info"])) {
114
-            $normalized_authority = $this->uri_parts["user_info"] . "@" . $normalized_authority;
114
+            $normalized_authority = $this->uri_parts["user_info"]."@".$normalized_authority;
115 115
         }
116 116
 
117 117
         $normalized_port = $this->normalizePort();
118 118
 
119 119
         if (!is_null($normalized_port)) {
120
-            $normalized_authority = $normalized_authority . ":" . $normalized_port;
120
+            $normalized_authority = $normalized_authority.":".$normalized_port;
121 121
         }
122 122
 
123 123
         return $normalized_authority;
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
     public function getPath()
210 210
     {
211 211
         $path_unencoded = array("/");
212
-        $allowed        = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded);
212
+        $allowed        = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded);
213 213
 
214 214
         if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) {
215 215
             $encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded);
@@ -537,7 +537,7 @@  discard block
 block discarded – undo
537 537
         $fragment_part = '(?:#(?P<fragment>.*))?';
538 538
         $reg_end       = '/';
539 539
 
540
-        $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end;
540
+        $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end;
541 541
 
542 542
         $uri_valid = preg_match($uri_syntax, $uri, $parts);
543 543
 
@@ -565,7 +565,7 @@  discard block
 block discarded – undo
565 565
         $path_part      = '(?P<path>.+)?';
566 566
         $reg_end        = '/';
567 567
 
568
-        $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end;
568
+        $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end;
569 569
 
570 570
         preg_match($hier_part_syntax, $hier_part, $hier_parts);
571 571
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
         $port_part      = '(?::(?P<port>[0-9]+))?';
597 597
         $reg_end        = '/';
598 598
 
599
-        $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end;
599
+        $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end;
600 600
 
601 601
         preg_match($authority_syntax, $authority, $authority_parts);
602 602
 
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
         $scheme_string = "";
700 700
 
701 701
         if (!empty($scheme)) {
702
-            $scheme_string .= $scheme . ":";
702
+            $scheme_string .= $scheme.":";
703 703
         }
704 704
 
705 705
         return $scheme_string;
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
         $authority_string = "";
720 720
 
721 721
         if (!empty($authority)) {
722
-            $authority_string .= "//" . $authority;
722
+            $authority_string .= "//".$authority;
723 723
         }
724 724
 
725 725
         return $authority_string;
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
             $path_string .= $collapsed_slashes;
747 747
         } elseif (!empty($path)) {
748 748
             if (!$path_string_helper->startsWith("/")) {
749
-                $path_string .= "/" . $path;
749
+                $path_string .= "/".$path;
750 750
             } else {
751 751
                 $path_string .= $path;
752 752
             }
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
         $query_string = "";
770 770
 
771 771
         if (!empty($query)) {
772
-            $query_string .= "?" . $query;
772
+            $query_string .= "?".$query;
773 773
         }
774 774
 
775 775
         return $query_string;
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
         $fragment_string = "";
790 790
 
791 791
         if (!empty($fragment)) {
792
-            $fragment_string .= "#" . $fragment;
792
+            $fragment_string .= "#".$fragment;
793 793
         }
794 794
 
795 795
         return $fragment_string;
Please login to merge, or discard this patch.