Completed
Push — master ( 293c4f...43515f )
by Derek
02:34
created
src/Anshar/Http/UriParts/UserInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $uri_userinfo = parent::toUriString(); //returns data string
56 56
 
57 57
         if (!empty($uri_userinfo)) {
58
-            $uri_userinfo = $uri_userinfo . "@";
58
+            $uri_userinfo = $uri_userinfo."@";
59 59
         }
60 60
 
61 61
         return $uri_userinfo;
Please login to merge, or discard this patch.
src/Anshar/Http/UriParts/Port.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     /**
48 48
      * Validates a given port. A port is valid if it is either null or an integer between 1 and 65535 inclusive.
49 49
      *
50
-     * @param mixed $port   The port to be validated
50
+     * @param integer|null $port   The port to be validated
51 51
      * @return bool         Returns true if the given port is valid
52 52
      *                      Returns false otherwise
53 53
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
         $uri_string = (string) $normalized_port;
93 93
 
94 94
         if (!is_null($normalized_port)) {
95
-            $uri_string = ":" . $uri_string;
95
+            $uri_string = ":".$uri_string;
96 96
         }
97 97
 
98 98
         return $uri_string;
Please login to merge, or discard this patch.
src/Anshar/Http/Uri.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -132,9 +132,9 @@  discard block
 block discarded – undo
132 132
     {
133 133
         $authority = $this->host->toUriString();
134 134
 
135
-        $authority = $this->user_info->toUriString() . $authority;
135
+        $authority = $this->user_info->toUriString().$authority;
136 136
 
137
-        $authority = $authority . $this->port->toUriString($this->scheme);
137
+        $authority = $authority.$this->port->toUriString($this->scheme);
138 138
 
139 139
         return $authority;
140 140
     }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     public function getPath()
226 226
     {
227 227
         $path_unencoded = array("/");
228
-        $allowed        = implode($this->pchar_unencoded) . implode($this->sub_delims) . implode($path_unencoded);
228
+        $allowed        = implode($this->pchar_unencoded).implode($this->sub_delims).implode($path_unencoded);
229 229
 
230 230
         if ($this->containsUnallowedUriCharacters($this->uri_parts["path"], $allowed)) {
231 231
             $encoded_string = $this->encodeComponent($this->uri_parts["path"], $path_unencoded);
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
         $fragment_part = '(?:#(?\'fragment\'.*))?';
547 547
         $reg_end       = '/';
548 548
 
549
-        $uri_syntax = $reg_start . $scheme_part . $hier_part . $query_part . $fragment_part . $reg_end;
549
+        $uri_syntax = $reg_start.$scheme_part.$hier_part.$query_part.$fragment_part.$reg_end;
550 550
 
551 551
         $uri_valid = preg_match($uri_syntax, $uri, $parts);
552 552
 
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
         $path_part      = '(?\'path\'.+)?';
582 582
         $reg_end        = '/';
583 583
 
584
-        $hier_part_syntax = $reg_start . $authority_part . $path_part . $reg_end;
584
+        $hier_part_syntax = $reg_start.$authority_part.$path_part.$reg_end;
585 585
 
586 586
         preg_match($hier_part_syntax, $hier_part, $hier_parts);
587 587
 
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
         $port_part      = '(?::(?\'port\'[0-9]+))?';
613 613
         $reg_end        = '/';
614 614
 
615
-        $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end;
615
+        $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end;
616 616
 
617 617
         preg_match($authority_syntax, $authority, $authority_parts);
618 618
 
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
         $authority_string = "";
695 695
 
696 696
         if (!empty($authority)) {
697
-            $authority_string .= "//" . $authority;
697
+            $authority_string .= "//".$authority;
698 698
         }
699 699
 
700 700
         return $authority_string;
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
             $path_string .= $collapsed_slashes;
722 722
         } elseif (!empty($path)) {
723 723
             if (!$path_string_helper->startsWith("/")) {
724
-                $path_string .= "/" . $path;
724
+                $path_string .= "/".$path;
725 725
             } else {
726 726
                 $path_string .= $path;
727 727
             }
Please login to merge, or discard this patch.
src/Anshar/Http/UriParts/AbstractUriPart.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -159,17 +159,17 @@
 block discarded – undo
159 159
 
160 160
         $valid_character_string = implode(static::$unencoded_characters);
161 161
 
162
-        static::$part_pattern = '([\w';   //start decoded group
162
+        static::$part_pattern = '([\w'; //start decoded group
163 163
 
164
-        static::$part_pattern = static::$part_pattern . preg_quote($valid_character_string, "/");
164
+        static::$part_pattern = static::$part_pattern.preg_quote($valid_character_string, "/");
165 165
 
166
-        static::$part_pattern = static::$part_pattern .
167
-            ']|' .                          //predefined patterns or percent-encoding
168
-            self::$pct_encoded_pattern .
166
+        static::$part_pattern = static::$part_pattern.
167
+            ']|'.//predefined patterns or percent-encoding
168
+            self::$pct_encoded_pattern.
169 169
             ')*';
170 170
 
171
-        static::$valid_pattern = '/^$|^' . //allows part to be empty
172
-            static::$part_pattern .
171
+        static::$valid_pattern = '/^$|^'.//allows part to be empty
172
+            static::$part_pattern.
173 173
             '$/';
174 174
     }
175 175
 
Please login to merge, or discard this patch.
src/Anshar/Http/UriParts/Authority.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     public function __toString()
99 99
     {
100
-        return $this->user_info->toUriString() . $this->host->toUriString() . $this->port->toUriString();
100
+        return $this->user_info->toUriString().$this->host->toUriString().$this->port->toUriString();
101 101
     }
102 102
 
103 103
     /**
@@ -111,15 +111,15 @@  discard block
 block discarded – undo
111 111
         $host_pattern      = Host::getValidPattern();
112 112
         $port_pattern      = Port::getValidPattern();
113 113
 
114
-        $reg_start = '/^$|^';   //allow for empty authority
114
+        $reg_start = '/^$|^'; //allow for empty authority
115 115
         $reg_end   = '/';
116 116
 
117 117
         self::$part_pattern =
118
-            '(' . $user_info_pattern . '@)?' .
119
-            $host_pattern .
120
-            '(:' . $port_pattern . ')?';
118
+            '('.$user_info_pattern.'@)?'.
119
+            $host_pattern.
120
+            '(:'.$port_pattern.')?';
121 121
 
122
-        self::$valid_pattern = $reg_start . self::$part_pattern . $reg_end;
122
+        self::$valid_pattern = $reg_start.self::$part_pattern.$reg_end;
123 123
     }
124 124
 
125 125
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $port_part      = '(?::(?\'port\'[0-9]+))?';
141 141
         $reg_end        = '/';
142 142
 
143
-        $authority_syntax = $reg_start . $user_info_part . $host_part . $port_part . $reg_end;
143
+        $authority_syntax = $reg_start.$user_info_part.$host_part.$port_part.$reg_end;
144 144
 
145 145
         preg_match($authority_syntax, $authority, $authority_parts);
146 146
 
Please login to merge, or discard this patch.