Passed
Push — master ( bb6f0e...232fc8 )
by Chris
02:03
created
src/utils.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -313,17 +313,17 @@
 block discarded – undo
313 313
      * @param  array $parsed_url An array created by urlpieces.
314 314
      * @return string            A URL string.
315 315
      */
316
-    public static function unparse_url( $parsed_url ) {
316
+    public static function unparse_url( $parsed_url ){
317 317
         //I don't know what you gave me so you can just have it back
318
-        if( ! is_array( $parsed_url ) ) {
318
+        if( ! is_array( $parsed_url ) ){
319 319
             return $parsed_url;
320 320
         }
321
-        $scheme   = isset( $parsed_url['scheme'])    ?       $parsed_url['scheme'] . '://' : '';
322
-        $host     = isset( $parsed_url['host'] )     ?       $parsed_url['host']           : '';
323
-        $port     = isset( $parsed_url['port'] )     ? ':' . $parsed_url['port']           : '';
324
-        $path     = isset( $parsed_url['path'] )     ?       $parsed_url['path']           : '';
325
-        $query    = isset( $parsed_url['query'] )    ? '?' . $parsed_url['query']          : '';
326
-        $fragment = isset( $parsed_url['fragment'] ) ? '#' . $parsed_url['fragment']       : '';
321
+        $scheme   = isset( $parsed_url[ 'scheme' ] ) ? $parsed_url[ 'scheme' ] . '://' : '';
322
+        $host     = isset( $parsed_url[ 'host' ] ) ? $parsed_url[ 'host' ] : '';
323
+        $port     = isset( $parsed_url[ 'port' ] ) ? ':' . $parsed_url[ 'port' ] : '';
324
+        $path     = isset( $parsed_url[ 'path' ] ) ? $parsed_url[ 'path' ] : '';
325
+        $query    = isset( $parsed_url[ 'query' ] ) ? '?' . $parsed_url[ 'query' ] : '';
326
+        $fragment = isset( $parsed_url[ 'fragment' ] ) ? '#' . $parsed_url[ 'fragment' ] : '';
327 327
 
328 328
         //NOTE: user and pass were explicitly removed.
329 329
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -186,7 +186,8 @@
 block discarded – undo
186 186
     /**
187 187
      * Get the current request array or mock array if set.
188 188
      *
189
-     * @param  string    The server method to use, one of GET, POST, SERVER or COOKIE.
189
+     * @param  string    The server method to use, one of GET, POST, SERVER or COOKIE.
190
+     * @param string $request_method
190 191
      * @return arra|null The requested array or null.
191 192
      */
192 193
     public static function get_request_object( $request_method )
Please login to merge, or discard this patch.