summaryrefslogtreecommitdiff
path: root/php/upload.php
diff options
context:
space:
mode:
authorakpu1 <akpu1@inventati.org>2016-06-20 22:57:18 +0200
committerGitHub <noreply@github.com>2016-06-20 22:57:18 +0200
commit142100b1213ee4a547d85b5587b2bce16d6b5e30 (patch)
tree6cf000a0ceee64238463a7d49461af9e1fd66ae2 /php/upload.php
parent7feb42edec849e7b70723e13292ac53674a8e453 (diff)
Fixed indenting in line with PSR2
Diffstat (limited to 'php/upload.php')
-rw-r--r--php/upload.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/php/upload.php b/php/upload.php
index e82a7c4..1c7a27f 100644
--- a/php/upload.php
+++ b/php/upload.php
@@ -84,15 +84,15 @@ function uploadFile($file)
// Check if mime type is blocked
if (!empty($FILTER_MIME)) {
- if($FILTER_MODE == true) { //whitelist mode
+ if ($FILTER_MODE == true) { //whitelist mode
if (!in_array($file->mime, $FILTER_MIME)) {
- throw new UploadException(UPLOAD_ERR_EXTENSION);
+ throw new UploadException(UPLOAD_ERR_EXTENSION);
}
- else { //blacklist mode
+ else { //blacklist mode
if (in_array($file->mime, $FILTER_MIME)) {
- throw new UploadException(UPLOAD_ERR_EXTENSION);
+ throw new UploadException(UPLOAD_ERR_EXTENSION);
}
- }
+ }
}