Jelajahi Sumber

[HttpFoundation] Fixed missing curly brackets

Pascal Borreli 14 tahun lalu
induk
melakukan
f7ab114d36
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/Symfony/Component/HttpFoundation/FileBag.php

+ 2 - 1
src/Symfony/Component/HttpFoundation/FileBag.php

@@ -86,13 +86,14 @@ class FileBag extends ParameterBag
             }
             }
             if ($keys != $this->fileKeys) {
             if ($keys != $this->fileKeys) {
                 $file = array_map(array($this, 'convertFileInformation'), $file);
                 $file = array_map(array($this, 'convertFileInformation'), $file);
-            } else
+            } else {
                 if ($file['error'] === UPLOAD_ERR_NO_FILE) {
                 if ($file['error'] === UPLOAD_ERR_NO_FILE) {
                     $file = null;
                     $file = null;
                 } else {
                 } else {
                     $file = new UploadedFile($file['tmp_name'], $file['name'],
                     $file = new UploadedFile($file['tmp_name'], $file['name'],
                     $file['type'], $file['size'], $file['error']);
                     $file['type'], $file['size'], $file['error']);
                 }
                 }
+            }
         }
         }
         return $file;
         return $file;
     }
     }