Completed
Push — master ( 7f5fa2...059c11 )
by Sebastian
07:26 queued 03:18
created
src/HttpMessage/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     /**
43 43
      * @var int Url port.
44 44
      */
45
-    protected $port =  0;
45
+    protected $port = 0;
46 46
 
47 47
     /**
48 48
      * @var string Url authority user
Please login to merge, or discard this patch.
src/HttpMessage/Stream.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         if (\is_string($stream)) {
39 39
             $error = null;
40 40
 
41
-            \set_error_handler(function ($e) use (&$error) {
41
+            \set_error_handler(function($e) use (&$error) {
42 42
                 if ($e === 2) {
43 43
                     $error = $e;
44 44
                 }
@@ -371,8 +371,7 @@  discard block
 block discarded – undo
371 371
         //if key is empty string
372 372
         return ($key === '') ?
373 373
             //return metadata
374
-            $metadata :
375
-            //else check if key exist and if key exist return as array else return void array
374
+            $metadata : //else check if key exist and if key exist return as array else return void array
376 375
             (isset($metadata[$key]) ? [$key => $metadata[$key]] : []);
377 376
     }
378 377
 }
Please login to merge, or discard this patch.
src/HttpMessage/Request.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
 
245 245
         //exclude standard ports from host
246 246
         if (!\in_array($port, [80, 443])) {
247
-            $host .= ':' . $uri->getPort();
247
+            $host .= ':'.$uri->getPort();
248 248
         }
249 249
 
250 250
         $new = $new->withoutHeader('host');
Please login to merge, or discard this patch.