Completed
Push — master ( f72deb...78ed9f )
by Derek
04:03
created
src/Anshar/Http/Uri.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -399,24 +399,24 @@  discard block
 block discarded – undo
399 399
 
400 400
     private function explodeUri($uri)
401 401
     {
402
-        echo $uri . "\n";
402
+        echo $uri."\n";
403 403
 
404 404
         $uri_parts = array();
405 405
 
406 406
         $reg_start              = '/^';
407
-        $scheme_part            = '(.+?)';  //Adding '?' makes it lazy since a URI may contain several colons
407
+        $scheme_part            = '(.+?)'; //Adding '?' makes it lazy since a URI may contain several colons
408 408
         $scheme_separator       = ':';
409 409
         $hier_part              = '(.+)';
410 410
         $query_part             = '\?';
411 411
         $query_separator        = '#';
412 412
         $reg_end                = '/';
413 413
 
414
-        $uri_syntax =   $reg_start .
415
-                        $scheme_part .
416
-                        $scheme_separator .
414
+        $uri_syntax = $reg_start.
415
+                        $scheme_part.
416
+                        $scheme_separator.
417 417
                         $reg_end;
418 418
 
419
-        echo $uri_syntax . "\n";
419
+        echo $uri_syntax."\n";
420 420
 
421 421
         $uri_valid = preg_match($uri_syntax, $uri, $parts);
422 422
 
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
             $uri_parts["scheme"] = "";
427 427
         }
428 428
 
429
-        echo $uri_parts["scheme"] . "\n";
429
+        echo $uri_parts["scheme"]."\n";
430 430
 
431 431
         return $uri_parts;
432 432
     }
Please login to merge, or discard this patch.
spec/Anshar/Http/RequestSpec.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
 
703 703
         $uri->getHost()->willReturn($host);
704 704
 
705
-        $empty_host = $this->withHeader("host","");
705
+        $empty_host = $this->withHeader("host", "");
706 706
 
707 707
         $request = $empty_host->withUri($uri, true);
708 708
 
@@ -723,7 +723,7 @@  discard block
 block discarded – undo
723 723
     {
724 724
         $uri->getHost()->willReturn(null);
725 725
 
726
-        $empty_host = $this->withHeader("host","");
726
+        $empty_host = $this->withHeader("host", "");
727 727
 
728 728
         $request = $empty_host->withUri($uri);
729 729
 
Please login to merge, or discard this patch.