summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/legacy/util.php')
-rw-r--r--lib/private/legacy/util.php19
1 files changed, 16 insertions, 3 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php
index 8fc880667e4..d61088169ae 100644
--- a/lib/private/legacy/util.php
+++ b/lib/private/legacy/util.php
@@ -91,6 +91,7 @@ class OC_Util {
* TODO make home storage aware of this and use the object storage instead of local disk access
*
* @param array $config containing 'class' and optional 'arguments'
+ * @suppress PhanDeprecatedFunction
*/
private static function initObjectStoreRootFS($config) {
// check misconfiguration
@@ -124,6 +125,7 @@ class OC_Util {
* necessity of a data folder being present.
*
* @param array $config containing 'class' and optional 'arguments'
+ * @suppress PhanDeprecatedFunction
*/
private static function initObjectStoreMultibucketRootFS($config) {
// check misconfiguration
@@ -165,6 +167,9 @@ class OC_Util {
* @param string $user
* @return boolean
* @description configure the initial filesystem based on the configuration
+ * @suppress PhanDeprecatedFunction
+ * @suppress PhanAccessMethodInternal
+ * @suppress PhanUndeclaredMethod
*/
public static function setupFS($user = '') {
//setting up the filesystem twice can only lead to trouble
@@ -289,6 +294,7 @@ class OC_Util {
* check if a password is required for each public link
*
* @return boolean
+ * @suppress PhanDeprecatedFunction
*/
public static function isPublicLinkPasswordRequired() {
$appConfig = \OC::$server->getAppConfig();
@@ -329,6 +335,7 @@ class OC_Util {
* check if share API enforces a default expire date
*
* @return boolean
+ * @suppress PhanDeprecatedFunction
*/
public static function isDefaultExpireDateEnforced() {
$isDefaultExpireDateEnabled = \OCP\Config::getAppValue('core', 'shareapi_default_expire_date', 'no');
@@ -345,7 +352,7 @@ class OC_Util {
* Get the quota of a user
*
* @param string $userId
- * @return int Quota bytes
+ * @return float Quota bytes
*/
public static function getUserQuota($userId) {
$user = \OC::$server->getUserManager()->get($userId);
@@ -365,6 +372,7 @@ class OC_Util {
* @param String $userId
* @param \OCP\Files\Folder $userDirectory
* @throws \RuntimeException
+ * @suppress PhanDeprecatedFunction
*/
public static function copySkeleton($userId, \OCP\Files\Folder $userDirectory) {
@@ -431,6 +439,7 @@ class OC_Util {
/**
* @return void
+ * @suppress PhanUndeclaredMethod
*/
public static function tearDownFS() {
\OC\Files\Filesystem::tearDown();
@@ -487,6 +496,7 @@ class OC_Util {
/**
* @description load the version.php into the session as cache
+ * @suppress PhanUndeclaredVariable
*/
private static function loadVersion() {
if (self::$versionCache !== null) {
@@ -563,8 +573,8 @@ class OC_Util {
* add a translation JS file
*
* @param string $application application id
- * @param string $languageCode language code, defaults to the current language
- * @param bool $prepend prepend the Script to the beginning of the list
+ * @param string|null $languageCode language code, defaults to the current language
+ * @param bool|null $prepend prepend the Script to the beginning of the list
*/
public static function addTranslations($application, $languageCode = null, $prepend = false) {
if (is_null($languageCode)) {
@@ -1068,6 +1078,7 @@ class OC_Util {
* the apps visible for the current user
*
* @return string URL
+ * @suppress PhanDeprecatedFunction
*/
public static function getDefaultPageUrl() {
$urlGenerator = \OC::$server->getURLGenerator();
@@ -1347,6 +1358,8 @@ class OC_Util {
* in case the opcode cache does not re-validate files
*
* @return void
+ * @suppress PhanDeprecatedFunction
+ * @suppress PhanUndeclaredConstant
*/
public static function clearOpcodeCache() {
// APC