From 74fb6b2508f80acb820ab667c463e17468b71251 Mon Sep 17 00:00:00 2001 From: Peter Lejeck Date: Sat, 30 Nov 2013 18:12:23 -0800 Subject: Add some whitespace and fix the phpdoc comments --- static/upload.php | 8 ++++++-- 1 file 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. */ -- cgit v1.2.3