summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:41:04 +0100
committerArthur Schiwon <blizzz@owncloud.com>2016-02-09 17:41:04 +0100
commit82a37d41d00d2f56c7cff1c3f8145384ca848d1c (patch)
treec91bb81b22353dd3ab58bd9eb37e2d78b8d83f2b
parentef7846f7bd075fbd28ab59edeab3cc2fd0d8f524 (diff)
downloadnextcloud-server-82a37d41d00d2f56c7cff1c3f8145384ca848d1c.tar.gz
nextcloud-server-82a37d41d00d2f56c7cff1c3f8145384ca848d1c.zip
Doc improvements
-rw-r--r--lib/private/user/user.php4
-rw-r--r--lib/public/iuser.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/private/user/user.php b/lib/private/user/user.php
index 0f230d468fd..5aea3f43c8c 100644
--- a/lib/private/user/user.php
+++ b/lib/private/user/user.php
@@ -362,8 +362,8 @@ class User implements IUser {
*/
public function setQuota($quota) {
if($quota !== 'none' and $quota !== 'default') {
- $quota= OC_Helper::computerFileSize($quota);
- $quota=OC_Helper::humanFileSize($quota);
+ $quota = OC_Helper::computerFileSize($quota);
+ $quota = OC_Helper::humanFileSize($quota);
}
$this->config->setUserValue($this->uid, 'files', 'quota', $quota);
$this->triggerChange('quota');
diff --git a/lib/public/iuser.php b/lib/public/iuser.php
index 2d2a2710bf8..8dbec43d3c1 100644
--- a/lib/public/iuser.php
+++ b/lib/public/iuser.php
@@ -180,7 +180,9 @@ interface IUser {
public function setEMailAddress($mailAddress);
/**
- * get the users' quota
+ * get the users' quota in human readable form. If a specific quota is not
+ * set for the user, the default value is returned. If a default setting
+ * was not set otherwise, it is return as 'none', i.e. quota is not limited.
*
* @return string
* @since 9.0.0