Passed
Branch master (d4dce2)
by Terry
03:13 queued 01:33
created
src/Psr7/UploadedFile.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -110,11 +110,11 @@  discard block
 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
 
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
             );
153 153
         }
154 154
 
155
-        if (! $this->stream) {
155
+        if (!$this->stream) {
156 156
             throw new RuntimeException(
157 157
                 'No stream is available or can be created.'
158 158
             );
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             );
174 174
         }
175 175
 
176
-        if (! is_writable(dirname($targetPath))) {
176
+        if (!is_writable(dirname($targetPath))) {
177 177
             // Throw exception if the $targetPath specified is invalid.
178 178
             throw new RuntimeException(
179 179
                 sprintf(
@@ -184,11 +184,11 @@  discard block
 block discarded – undo
184 184
         }
185 185
 
186 186
         // Is a file..
187
-        if (is_string($this->file) && ! empty($this->file)) {
187
+        if (is_string($this->file) && !empty($this->file)) {
188 188
 
189 189
             if ($this->sapi === 'cli') {
190 190
 
191
-                if (! rename($this->file, $targetPath)) {
191
+                if (!rename($this->file, $targetPath)) {
192 192
 
193 193
                     // @codeCoverageIgnoreStart
194 194
 
@@ -205,8 +205,8 @@  discard block
 block discarded – undo
205 205
             } else {
206 206
 
207 207
                 if (
208
-                    ! is_uploaded_file($this->file) || 
209
-                    ! move_uploaded_file($this->file, $targetPath)
208
+                    !is_uploaded_file($this->file) || 
209
+                    !move_uploaded_file($this->file, $targetPath)
210 210
                 ) {
211 211
                     // Throw exception on any error during the move operation.
212 212
                     throw new RuntimeException(
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
             // @codeCoverageIgnoreStart
229 229
 
230
-            if (! file_exists($targetPath)) {
230
+            if (!file_exists($targetPath)) {
231 231
                 // Throw exception on any error during the move operation.
232 232
                 throw new RuntimeException(
233 233
                     sprintf(
Please login to merge, or discard this patch.