diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-11-02 14:59:36 -0700 |
commit | fd584f446dabb1d3727a932cd5f4dbaafe63f0b8 (patch) | |
tree | 17efc1c42c3e844b69c9c19f6eba1b4cbd16f5e0 /apps/files | |
parent | 2dbf2c69deaf2bb8bdf02d4539756f8f6d2b9738 (diff) | |
parent | afadf93d317e27fd848f1e70d5849169f862aed9 (diff) | |
download | nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.tar.gz nextcloud-server-fd584f446dabb1d3727a932cd5f4dbaafe63f0b8.zip |
Merge pull request #220 from fmms/checkstyle02
Checkstyle: many fixes
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/appinfo/filesync.php | 2 | ||||
-rw-r--r-- | apps/files/download.php | 2 | ||||
-rw-r--r-- | apps/files/index.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/files/appinfo/filesync.php b/apps/files/appinfo/filesync.php index 47fc6fb4de6..dfafe3f9561 100644 --- a/apps/files/appinfo/filesync.php +++ b/apps/files/appinfo/filesync.php @@ -36,7 +36,7 @@ if(!OC_User::isLoggedIn()) { } } -list($type,$file) = explode('/', substr($path_info,1+strlen($service)+1), 2); +list($type,$file) = explode('/', substr($path_info, 1+strlen($service)+1), 2); if ($type != 'oc_chunked') { OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND); diff --git a/apps/files/download.php b/apps/files/download.php index ff6aefbbe0f..0d632c9b2c2 100644 --- a/apps/files/download.php +++ b/apps/files/download.php @@ -32,7 +32,7 @@ $filename = $_GET["file"]; if(!OC_Filesystem::file_exists($filename)) { header("HTTP/1.0 404 Not Found"); $tmpl = new OCP\Template( '', '404', 'guest' ); - $tmpl->assign('file',$filename); + $tmpl->assign('file', $filename); $tmpl->printPage(); exit; } diff --git a/apps/files/index.php b/apps/files/index.php index 8b8b0fd7610..51fe6b0379c 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -86,7 +86,7 @@ $post_max_size = OCP\Util::computerFileSize(ini_get('post_max_size')); $maxUploadFilesize = min($upload_max_filesize, $post_max_size); $freeSpace=OC_Filesystem::free_space($dir); -$freeSpace=max($freeSpace,0); +$freeSpace=max($freeSpace, 0); $maxUploadFilesize = min($maxUploadFilesize, $freeSpace); $permissions = OCP\Share::PERMISSION_READ; |