diff options
| author | Peter Lejeck <peter.lejeck@gmail.com> | 2013-12-01 03:12:23 +0100 |
|---|---|---|
| committer | Peter Lejeck <peter.lejeck@gmail.com> | 2013-12-01 03:12:59 +0100 |
| commit | 74fb6b2508f80acb820ab667c463e17468b71251 (patch) | |
| tree | 1c8d8013f541a42223b7188908af9ac6e7c8d180 | |
| parent | d665ec0e85eaf4051ba5ee4a898284dd7fa6267a (diff) | |
Add some whitespace and fix the phpdoc comments
| -rw-r--r-- | static/upload.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/static/upload.php b/static/upload.php index e2a3016..11ed6b9 100644 --- a/static/upload.php +++ b/static/upload.php @@ -3,11 +3,12 @@ include_once 'classes/UploadedFile.class.php'; include_once 'includes/settings.inc.php'; include_once 'includes/database.inc.php'; + /** * Generates a name for the file, retrying until we get an unused one * * @param UploadedFile $file - * @returns string + * @return string */ function generate_name ($file) { // We start at N retries, and --N until we give up @@ -33,11 +34,12 @@ function generate_name ($file) { return $newname; } + /** * Handles the uploading and db entry for a file * * @param UploadedFile $file - * @returns array + * @return array */ function upload_file ($file) { global $db; @@ -92,6 +94,7 @@ function upload_file ($file) { } } + /** * Reorganize the $_FILES array into something saner * @@ -113,6 +116,7 @@ function refiles ($files) { return $out; } + /** * Responds to a request in JSON form. */ |
