Passed
Push — master ( 954323...99c9e9 )
by Terry
01:31
created
src/Psr7/Response.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,9 +141,9 @@
 block discarded – undo
141 141
      * @param string                 $reason  Reaspnse HTTP reason phrase.
142 142
      */
143 143
     public function __construct(
144
-        int    $status  = 200  ,
145
-        array  $headers = []   ,
146
-               $body    = ''   ,
144
+        int    $status  = 200,
145
+        array  $headers = [],
146
+               $body    = '',
147 147
         string $version = '1.1',
148 148
         string $reason  = 'OK'
149 149
     ) {
Please login to merge, or discard this patch.
src/Psr7/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,9 +107,9 @@
 block discarded – undo
107 107
      */
108 108
     public function __construct(
109 109
         string $method  = 'GET',
110
-               $uri     = ''   ,
111
-               $body    = ''   ,
112
-        array  $headers = []   ,
110
+               $uri     = '',
111
+               $body    = '',
112
+        array  $headers = [],
113 113
         string $version = '1.1'
114 114
     ) {
115 115
         $this->assertMethod($method);
Please login to merge, or discard this patch.
src/Psr7/ServerRequest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -94,14 +94,14 @@
 block discarded – undo
94 94
      */
95 95
     public function __construct(
96 96
         string $method       = 'GET',
97
-               $uri          = ''   ,
98
-               $body         = ''   ,
99
-        array  $headers      = []   ,
97
+               $uri          = '',
98
+               $body         = '',
99
+        array  $headers      = [],
100 100
         string $version      = '1.1',
101
-        array  $serverParams = []   ,
102
-        array  $cookieParams = []   ,
103
-        array  $postParams   = []   ,
104
-        array  $getParams    = []   ,
101
+        array  $serverParams = [],
102
+        array  $cookieParams = [],
103
+        array  $postParams   = [],
104
+        array  $getParams    = [],
105 105
         array  $filesParams  = []
106 106
     ) {
107 107
         parent::__construct($method, $uri, $body, $headers, $version);
Please login to merge, or discard this patch.
src/Psr7/Message.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@
 block discarded – undo
282 282
         $num = count($headers);
283 283
 
284 284
         if ($num > 1) {
285
-            $headers = array_merge(...array_map(function ($line) {
285
+            $headers = array_merge(...array_map(function($line) {
286 286
                 $name = trim($line[1]);
287 287
                 $field = trim($line[2]);
288 288
                 return [$name => $field];
Please login to merge, or discard this patch.
src/Psr7/UploadedFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,11 +110,11 @@
 block discarded – undo
110 110
      * @param string|null            $sapi   Only assign for unit testing purpose.
111 111
      */
112 112
     public function __construct(
113
-                $source       ,
113
+                $source,
114 114
         ?string $name   = null,
115 115
         ?string $type   = null,
116 116
         ?int    $size   = null,
117
-        int     $error  = 0   ,
117
+        int     $error  = 0,
118 118
         ?string $sapi   = null
119 119
     ) {
120 120
 
Please login to merge, or discard this patch.
src/Psr7/Uri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
             'fragment'
379 379
         ];
380 380
 
381
-        foreach($components as $v) {
381
+        foreach ($components as $v) {
382 382
             $this->{$v} = isset($data[$v]) ? $this->filter($v, $data[$v]) : '';
383 383
         }
384 384
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
         if ($regex) {
440 440
             return preg_replace_callback(
441 441
                 $regex,
442
-                function ($match) {
442
+                function($match) {
443 443
                     return rawurlencode($match[0]);
444 444
                 },
445 445
                 $value
Please login to merge, or discard this patch.
src/Psr17/ServerRequestFactory.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         }
41 41
 
42 42
         $protocol = $server['SERVER_PROTOCOL'] ?? '1.1';
43
-        $protocol = str_replace('HTTP/', '',  $protocol);
43
+        $protocol = str_replace('HTTP/', '', $protocol);
44 44
 
45 45
         if (!($uri instanceof UriInterface)) {
46 46
             $uriFactory = new UriFactory();
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
             $protocol,
59 59
             $server, // from extract.
60 60
             $cookie, // from extract.
61
-            $post,   // from extract.
62
-            $get,    // from extract.
61
+            $post, // from extract.
62
+            $get, // from extract.
63 63
             $files   // from extract.
64 64
         );
65 65
     }
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         // HTTP protocal version.
86 86
         $protocol = $server['SERVER_PROTOCOL'] ?? '1.1';
87
-        $protocol = str_replace('HTTP/', '',  $protocol);
87
+        $protocol = str_replace('HTTP/', '', $protocol);
88 88
 
89 89
         $uri = UriFactory::fromGlobal();
90 90
 
@@ -99,8 +99,8 @@  discard block
 block discarded – undo
99 99
             $protocol,
100 100
             $server, // from extract.
101 101
             $cookie, // from extract.
102
-            $post,   // from extract.
103
-            $get,    // from extract.
102
+            $post, // from extract.
103
+            $get, // from extract.
104 104
             $files   // from extract.
105 105
         );
106 106
     }
Please login to merge, or discard this patch.