diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-28 17:59:50 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-04-28 17:59:50 +0200 |
commit | 535302b25eadf982b0c1572221bde7dee4ebe52a (patch) | |
tree | 3b27171a0163e451fdfcefc8ce57d71dcb25fb66 /apps/files/lib | |
parent | 05dc265ea2f9efc7e1e81927e361895f93abb7cc (diff) | |
download | nextcloud-server-535302b25eadf982b0c1572221bde7dee4ebe52a.tar.gz nextcloud-server-535302b25eadf982b0c1572221bde7dee4ebe52a.zip |
typos, indentation and remove of unused code
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/helper.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/files/lib/helper.php b/apps/files/lib/helper.php index b23c1d1e300..7e0f47bf84f 100644 --- a/apps/files/lib/helper.php +++ b/apps/files/lib/helper.php @@ -18,12 +18,12 @@ class Helper $storageInfo = \OC_Helper::getStorageInfo($dir); $l = new \OC_L10N('files'); - $maxUploadFilesize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']); - $maxHumanFilesize = \OCP\Util::humanFileSize($maxUploadFilesize); - $maxHumanFilesize = $l->t('Upload (max. %s)', array($maxHumanFilesize)); + $maxUploadFileSize = \OCP\Util::maxUploadFilesize($dir, $storageInfo['free']); + $maxHumanFileSize = \OCP\Util::humanFileSize($maxUploadFileSize); + $maxHumanFileSize = $l->t('Upload (max. %s)', array($maxHumanFileSize)); - return array('uploadMaxFilesize' => $maxUploadFilesize, - 'maxHumanFilesize' => $maxHumanFilesize, + return array('uploadMaxFilesize' => $maxUploadFileSize, + 'maxHumanFilesize' => $maxHumanFileSize, 'freeSpace' => $storageInfo['free'], 'usedSpacePercent' => (int)$storageInfo['relative']); } @@ -36,7 +36,6 @@ class Helper */ public static function determineIcon($file) { if($file['type'] === 'dir') { - $dir = $file['directory']; $icon = \OC_Helper::mimetypeIcon('dir'); $absPath = $file->getPath(); $mount = \OC\Files\Filesystem::getMountManager()->find($absPath); |