Passed
Push — master ( 53f4b3...83af41 )
by Terry
01:43
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/Uri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -439,7 +439,7 @@
 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/Psr7/ServerRequest.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -101,14 +101,14 @@  discard block
 block discarded – undo
101 101
      */
102 102
     public function __construct(
103 103
         string $method       = 'GET',
104
-               $uri          = ''   ,
105
-               $body         = ''   ,
106
-        array  $headers      = []   ,
104
+               $uri          = '',
105
+               $body         = '',
106
+        array  $headers      = [],
107 107
         string $version      = '1.1',
108
-        array  $serverParams = []   ,
109
-        array  $cookieParams = []   ,
110
-        array  $postParams   = []   ,
111
-        array  $getParams    = []   ,
108
+        array  $serverParams = [],
109
+        array  $cookieParams = [],
110
+        array  $postParams   = [],
111
+        array  $getParams    = [],
112 112
         array  $filesParams  = []
113 113
     ) {
114 114
         parent::__construct($method, $uri, $body, $headers, $version);
@@ -301,9 +301,9 @@  discard block
 block discarded – undo
301 301
     protected function assertParsedBody($data): void
302 302
     {
303 303
         if (
304
-            ! is_null($data) &&
305
-            ! is_array($data) && 
306
-            ! is_object($data)
304
+            !is_null($data) &&
305
+            !is_array($data) && 
306
+            !is_object($data)
307 307
         ) {
308 308
             throw new InvalidArgumentException(
309 309
                 sprintf(
Please login to merge, or discard this patch.
src/Psr7/UploadedFile.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
      * @param string|null            $sapi   Only assign for unit testing purpose.
119 119
      */
120 120
     public function __construct(
121
-                $source       ,
121
+                $source,
122 122
         ?string $name   = null,
123 123
         ?string $type   = null,
124 124
         ?int    $size   = null,
125
-        int     $error  = 0   ,
125
+        int     $error  = 0,
126 126
         ?string $sapi   = null
127 127
     ) {
128 128
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         }
201 201
 
202 202
         // Is a file..
203
-        if (is_string($this->file) && ! empty($this->file)) {
203
+        if (is_string($this->file) && !empty($this->file)) {
204 204
 
205 205
             if ($this->sapi === 'cli') {
206 206
 
@@ -221,8 +221,8 @@  discard block
 block discarded – undo
221 221
             } else {
222 222
 
223 223
                 if (
224
-                    ! is_uploaded_file($this->file) || 
225
-                    ! move_uploaded_file($this->file, $targetPath)
224
+                    !is_uploaded_file($this->file) || 
225
+                    !move_uploaded_file($this->file, $targetPath)
226 226
                 ) {
227 227
                     // Throw exception on any error during the move operation.
228 228
                     throw new RuntimeException(
Please login to merge, or discard this patch.