summaryrefslogtreecommitdiffstats
path: root/lib/private/util.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
commit1e321406ee2d973e937637ab090cbd83a6eb40cf (patch)
tree78eca74636ab68b3f52ebac9c013c55a1526bd43 /lib/private/util.php
parent635b8f6b83ae37ac262c5f7a0bd40697824b9b67 (diff)
parentc6f4f85e27a10459422ab9789c894d13f0cd34c7 (diff)
downloadnextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.tar.gz
nextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.zip
Merge pull request #7114 from owncloud/scrutinizer_documentation_patches
polish documentation based on scrutinizer patches
Diffstat (limited to 'lib/private/util.php')
-rwxr-xr-xlib/private/util.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/private/util.php b/lib/private/util.php
index 246c82a26c7..af39d983f67 100755
--- a/lib/private/util.php
+++ b/lib/private/util.php
@@ -90,6 +90,9 @@ class OC_Util {
return true;
}
+ /**
+ * @param string $user
+ */
public static function getUserQuota($user){
$config = \OC::$server->getConfig();
$userQuota = $config->getUserValue($user, 'files', 'quota', 'default');
@@ -215,7 +218,7 @@ class OC_Util {
* @brief add a javascript file
*
* @param string $application
- * @param filename $file
+ * @param mixed $file filename
* @return void
*/
public static function addScript( $application, $file = null ) {
@@ -234,7 +237,7 @@ class OC_Util {
* @brief add a css file
*
* @param string $application
- * @param filename $file
+ * @param mixed $file filename
* @return void
*/
public static function addStyle( $application, $file = null ) {
@@ -513,7 +516,7 @@ class OC_Util {
/**
* @brief Check for correct file permissions of data directory
- * @paran string $dataDirectory
+ * @param string $dataDirectory
* @return array arrays with error messages and hints
*/
public static function checkDataDirectoryPermissions($dataDirectory) {
@@ -626,7 +629,7 @@ class OC_Util {
/**
* @brief Check if the user is a subadmin, redirects to home if not
- * @return array $groups where the current user is subadmin
+ * @return null|boolean $groups where the current user is subadmin
*/
public static function checkSubAdminUser() {
OC_Util::checkLoggedIn();
@@ -925,7 +928,7 @@ class OC_Util {
/**
* @brief Check if the connection to the internet is disabled on purpose
- * @return bool
+ * @return string
*/
public static function isInternetConnectionEnabled(){
return \OC_Config::getValue("has_internet_connection", true);
@@ -1130,6 +1133,7 @@ class OC_Util {
}
/**
+ * @param boolean|string $file
* @return string
*/
public static function basename($file) {