Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php2
-rw-r--r--lib/private/App/CodeChecker/CodeChecker.php16
-rw-r--r--lib/private/App/CompareVersion.php8
-rw-r--r--lib/private/AppFramework/Http/Request.php22
-rw-r--r--lib/private/Archive/TAR.php6
-rw-r--r--lib/private/Authentication/Token/DefaultToken.php2
-rw-r--r--lib/private/Authentication/Token/IToken.php10
-rw-r--r--lib/private/Authentication/Token/PublicKeyToken.php2
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php2
-rw-r--r--lib/private/Authentication/TwoFactorAuth/Manager.php8
-rw-r--r--lib/private/Authentication/TwoFactorAuth/ProviderLoader.php2
-rw-r--r--lib/private/Config.php2
-rw-r--r--lib/private/DB/AdapterOCI8.php2
-rw-r--r--lib/private/DB/AdapterPgSql.php2
-rw-r--r--lib/private/DB/ConnectionFactory.php4
-rw-r--r--lib/private/DB/ReconnectWrapper.php2
-rw-r--r--lib/private/Encryption/Keys/Storage.php2
-rw-r--r--lib/private/Encryption/Util.php8
-rw-r--r--lib/private/Files/Cache/QuerySearchHelper.php2
-rw-r--r--lib/private/Files/Filesystem.php42
-rw-r--r--lib/private/Files/ObjectStore/SwiftFactory.php2
-rw-r--r--lib/private/Files/Storage/Wrapper/Availability.php2
-rw-r--r--lib/private/Files/Utils/Scanner.php2
-rw-r--r--lib/private/Group/Backend.php2
-rw-r--r--lib/private/Group/MetaData.php6
-rw-r--r--lib/private/Http/CookieHelper.php6
-rw-r--r--lib/private/IntegrityCheck/Checker.php2
-rw-r--r--lib/private/L10N/Factory.php2
-rwxr-xr-xlib/private/LargeFileHelper.php4
-rw-r--r--lib/private/Log/ExceptionSerializer.php4
-rw-r--r--lib/private/Memcache/Factory.php2
-rw-r--r--lib/private/MemoryInfo.php2
-rw-r--r--lib/private/Remote/User.php2
-rw-r--r--lib/private/Repair/Owncloud/SaveAccountsTableData.php2
-rw-r--r--lib/private/Repair/RepairInvalidShares.php2
-rw-r--r--lib/private/Security/Bruteforce/Throttler.php2
-rw-r--r--lib/private/Security/CredentialsManager.php2
-rw-r--r--lib/private/Session/CryptoSessionData.php2
-rw-r--r--lib/private/Session/CryptoWrapper.php2
-rw-r--r--lib/private/Share/Constants.php30
-rw-r--r--lib/private/Share20/DefaultShareProvider.php2
-rw-r--r--lib/private/SystemTag/SystemTagManager.php4
-rw-r--r--lib/private/SystemTag/SystemTagObjectMapper.php2
-rw-r--r--lib/private/Tags.php4
-rw-r--r--lib/private/TempManager.php2
-rw-r--r--lib/private/Updater/ChangesCheck.php6
-rw-r--r--lib/private/Updater/ChangesMapper.php2
-rw-r--r--lib/private/User/Backend.php18
-rw-r--r--lib/private/legacy/OC_App.php4
-rw-r--r--lib/private/legacy/OC_Files.php8
50 files changed, 139 insertions, 139 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index fd0600a3ce4..a54d149df62 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -40,7 +40,7 @@ use OCP\IConfig;
use OCP\ILogger;
abstract class Fetcher {
- const INVALIDATE_AFTER_SECONDS = 300;
+ public const INVALIDATE_AFTER_SECONDS = 300;
/** @var IAppData */
protected $appData;
diff --git a/lib/private/App/CodeChecker/CodeChecker.php b/lib/private/App/CodeChecker/CodeChecker.php
index aa8f43e6af2..01969006af4 100644
--- a/lib/private/App/CodeChecker/CodeChecker.php
+++ b/lib/private/App/CodeChecker/CodeChecker.php
@@ -37,14 +37,14 @@ use RegexIterator;
use SplFileInfo;
class CodeChecker extends BasicEmitter {
- const CLASS_EXTENDS_NOT_ALLOWED = 1000;
- const CLASS_IMPLEMENTS_NOT_ALLOWED = 1001;
- const STATIC_CALL_NOT_ALLOWED = 1002;
- const CLASS_CONST_FETCH_NOT_ALLOWED = 1003;
- const CLASS_NEW_NOT_ALLOWED = 1004;
- const OP_OPERATOR_USAGE_DISCOURAGED = 1005;
- const CLASS_USE_NOT_ALLOWED = 1006;
- const CLASS_METHOD_CALL_NOT_ALLOWED = 1007;
+ public const CLASS_EXTENDS_NOT_ALLOWED = 1000;
+ public const CLASS_IMPLEMENTS_NOT_ALLOWED = 1001;
+ public const STATIC_CALL_NOT_ALLOWED = 1002;
+ public const CLASS_CONST_FETCH_NOT_ALLOWED = 1003;
+ public const CLASS_NEW_NOT_ALLOWED = 1004;
+ public const OP_OPERATOR_USAGE_DISCOURAGED = 1005;
+ public const CLASS_USE_NOT_ALLOWED = 1006;
+ public const CLASS_METHOD_CALL_NOT_ALLOWED = 1007;
/** @var Parser */
private $parser;
diff --git a/lib/private/App/CompareVersion.php b/lib/private/App/CompareVersion.php
index 12cd7615769..5d38d4c358e 100644
--- a/lib/private/App/CompareVersion.php
+++ b/lib/private/App/CompareVersion.php
@@ -26,10 +26,10 @@ namespace OC\App;
use InvalidArgumentException;
class CompareVersion {
- const REGEX_MAJOR = '/^\d+$/';
- const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
- const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
- const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
+ public const REGEX_MAJOR = '/^\d+$/';
+ public const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
+ public const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
+ public const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
/**
* Checks if the given server version fulfills the given (app) version requirements.
diff --git a/lib/private/AppFramework/Http/Request.php b/lib/private/AppFramework/Http/Request.php
index 1dcec3c3b98..c9b22dd7a1e 100644
--- a/lib/private/AppFramework/Http/Request.php
+++ b/lib/private/AppFramework/Http/Request.php
@@ -64,32 +64,32 @@ use OCP\Security\ISecureRandom;
* @property mixed[] server
*/
class Request implements \ArrayAccess, \Countable, IRequest {
- const USER_AGENT_IE = '/(MSIE)|(Trident)/';
+ public const USER_AGENT_IE = '/(MSIE)|(Trident)/';
// Microsoft Edge User Agent from https://msdn.microsoft.com/en-us/library/hh869301(v=vs.85).aspx
- const USER_AGENT_MS_EDGE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/';
+ public const USER_AGENT_MS_EDGE = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+ Edge\/[0-9.]+$/';
// Firefox User Agent from https://developer.mozilla.org/en-US/docs/Web/HTTP/Gecko_user_agent_string_reference
- const USER_AGENT_FIREFOX = '/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/[0-9.]+$/';
+ public const USER_AGENT_FIREFOX = '/^Mozilla\/5\.0 \([^)]+\) Gecko\/[0-9.]+ Firefox\/[0-9.]+$/';
// Chrome User Agent from https://developer.chrome.com/multidevice/user-agent
- const USER_AGENT_CHROME = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)( Ubuntu Chromium\/[0-9.]+|) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+( (Vivaldi|Brave|OPR)\/[0-9.]+|)$/';
+ public const USER_AGENT_CHROME = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\)( Ubuntu Chromium\/[0-9.]+|) Chrome\/[0-9.]+ (Mobile Safari|Safari)\/[0-9.]+( (Vivaldi|Brave|OPR)\/[0-9.]+|)$/';
// Safari User Agent from http://www.useragentstring.com/pages/Safari/
- const USER_AGENT_SAFARI = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ Safari\/[0-9.A-Z]+$/';
+ public const USER_AGENT_SAFARI = '/^Mozilla\/5\.0 \([^)]+\) AppleWebKit\/[0-9.]+ \(KHTML, like Gecko\) Version\/[0-9.]+ Safari\/[0-9.A-Z]+$/';
// Android Chrome user agent: https://developers.google.com/chrome/mobile/docs/user-agent
- const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#';
- const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#';
- const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost|::1)$/';
+ public const USER_AGENT_ANDROID_MOBILE_CHROME = '#Android.*Chrome/[.0-9]*#';
+ public const USER_AGENT_FREEBOX = '#^Mozilla/5\.0$#';
+ public const REGEX_LOCALHOST = '/^(127\.0\.0\.1|localhost|::1)$/';
/**
* @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_IOS instead
*/
- const USER_AGENT_OWNCLOUD_IOS = '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/';
+ public const USER_AGENT_OWNCLOUD_IOS = '/^Mozilla\/5\.0 \(iOS\) (ownCloud|Nextcloud)\-iOS.*$/';
/**
* @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_ANDROID instead
*/
- const USER_AGENT_OWNCLOUD_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/';
+ public const USER_AGENT_OWNCLOUD_ANDROID = '/^Mozilla\/5\.0 \(Android\) ownCloud\-android.*$/';
/**
* @deprecated use \OCP\IRequest::USER_AGENT_CLIENT_DESKTOP instead
*/
- const USER_AGENT_OWNCLOUD_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/';
+ public const USER_AGENT_OWNCLOUD_DESKTOP = '/^Mozilla\/5\.0 \([A-Za-z ]+\) (mirall|csyncoC)\/.*$/';
protected $inputStream;
protected $content;
diff --git a/lib/private/Archive/TAR.php b/lib/private/Archive/TAR.php
index f6e7c12d02d..0d4103299ce 100644
--- a/lib/private/Archive/TAR.php
+++ b/lib/private/Archive/TAR.php
@@ -35,9 +35,9 @@ namespace OC\Archive;
use Icewind\Streams\CallbackWrapper;
class TAR extends Archive {
- const PLAIN = 0;
- const GZIP = 1;
- const BZIP = 2;
+ public const PLAIN = 0;
+ public const GZIP = 1;
+ public const BZIP = 2;
private $fileList;
private $cachedHeaders;
diff --git a/lib/private/Authentication/Token/DefaultToken.php b/lib/private/Authentication/Token/DefaultToken.php
index 7ca05849635..9df907dfb4a 100644
--- a/lib/private/Authentication/Token/DefaultToken.php
+++ b/lib/private/Authentication/Token/DefaultToken.php
@@ -43,7 +43,7 @@ use OCP\AppFramework\Db\Entity;
* @method void setVersion(int $version)
*/
class DefaultToken extends Entity implements INamedToken {
- const VERSION = 1;
+ public const VERSION = 1;
/** @var string user UID */
protected $uid;
diff --git a/lib/private/Authentication/Token/IToken.php b/lib/private/Authentication/Token/IToken.php
index 1f7c736f86b..326e9554b8e 100644
--- a/lib/private/Authentication/Token/IToken.php
+++ b/lib/private/Authentication/Token/IToken.php
@@ -30,11 +30,11 @@ namespace OC\Authentication\Token;
use JsonSerializable;
interface IToken extends JsonSerializable {
- const TEMPORARY_TOKEN = 0;
- const PERMANENT_TOKEN = 1;
- const WIPE_TOKEN = 2;
- const DO_NOT_REMEMBER = 0;
- const REMEMBER = 1;
+ public const TEMPORARY_TOKEN = 0;
+ public const PERMANENT_TOKEN = 1;
+ public const WIPE_TOKEN = 2;
+ public const DO_NOT_REMEMBER = 0;
+ public const REMEMBER = 1;
/**
* Get the token ID
diff --git a/lib/private/Authentication/Token/PublicKeyToken.php b/lib/private/Authentication/Token/PublicKeyToken.php
index 27eda0b6889..0724eabc70c 100644
--- a/lib/private/Authentication/Token/PublicKeyToken.php
+++ b/lib/private/Authentication/Token/PublicKeyToken.php
@@ -47,7 +47,7 @@ use OCP\AppFramework\Db\Entity;
* @method bool getPasswordInvalid()
*/
class PublicKeyToken extends Entity implements INamedToken, IWipeableToken {
- const VERSION = 2;
+ public const VERSION = 2;
/** @var string user UID */
protected $uid;
diff --git a/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php b/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
index a5ddad47e01..02e6863d1c4 100644
--- a/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
+++ b/lib/private/Authentication/TwoFactorAuth/Db/ProviderUserAssignmentDao.php
@@ -35,7 +35,7 @@ use OCP\IDBConnection;
* 2FA providers
*/
class ProviderUserAssignmentDao {
- const TABLE_NAME = 'twofactor_providers';
+ public const TABLE_NAME = 'twofactor_providers';
/** @var IDBConnection */
private $conn;
diff --git a/lib/private/Authentication/TwoFactorAuth/Manager.php b/lib/private/Authentication/TwoFactorAuth/Manager.php
index ec414e67938..07e61175361 100644
--- a/lib/private/Authentication/TwoFactorAuth/Manager.php
+++ b/lib/private/Authentication/TwoFactorAuth/Manager.php
@@ -46,10 +46,10 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\GenericEvent;
class Manager {
- const SESSION_UID_KEY = 'two_factor_auth_uid';
- const SESSION_UID_DONE = 'two_factor_auth_passed';
- const REMEMBER_LOGIN = 'two_factor_remember_login';
- const BACKUP_CODES_PROVIDER_ID = 'backup_codes';
+ public const SESSION_UID_KEY = 'two_factor_auth_uid';
+ public const SESSION_UID_DONE = 'two_factor_auth_passed';
+ public const REMEMBER_LOGIN = 'two_factor_remember_login';
+ public const BACKUP_CODES_PROVIDER_ID = 'backup_codes';
/** @var ProviderLoader */
private $providerLoader;
diff --git a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
index 0754679adf1..40385d737ae 100644
--- a/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
+++ b/lib/private/Authentication/TwoFactorAuth/ProviderLoader.php
@@ -35,7 +35,7 @@ use OCP\Authentication\TwoFactorAuth\IProvider;
use OCP\IUser;
class ProviderLoader {
- const BACKUP_CODES_APP_ID = 'twofactor_backupcodes';
+ public const BACKUP_CODES_APP_ID = 'twofactor_backupcodes';
/** @var IAppManager */
private $appManager;
diff --git a/lib/private/Config.php b/lib/private/Config.php
index 1724222f4bb..d44f713f361 100644
--- a/lib/private/Config.php
+++ b/lib/private/Config.php
@@ -42,7 +42,7 @@ namespace OC;
* configuration file of Nextcloud.
*/
class Config {
- const ENV_PREFIX = 'NC_';
+ public const ENV_PREFIX = 'NC_';
/** @var array Associative array ($key => $value) */
protected $cache = [];
diff --git a/lib/private/DB/AdapterOCI8.php b/lib/private/DB/AdapterOCI8.php
index 3eb50916aab..33a30b8348d 100644
--- a/lib/private/DB/AdapterOCI8.php
+++ b/lib/private/DB/AdapterOCI8.php
@@ -37,7 +37,7 @@ class AdapterOCI8 extends Adapter {
return $this->conn->realLastInsertId($table);
}
- const UNIX_TIMESTAMP_REPLACEMENT = "(cast(sys_extract_utc(systimestamp) as date) - date'1970-01-01') * 86400";
+ public const UNIX_TIMESTAMP_REPLACEMENT = "(cast(sys_extract_utc(systimestamp) as date) - date'1970-01-01') * 86400";
public function fixupStatement($statement) {
$statement = preg_replace('/`(\w+)` ILIKE \?/', 'REGEXP_LIKE(`$1`, \'^\' || REPLACE(?, \'%\', \'.*\') || \'$\', \'i\')', $statement);
diff --git a/lib/private/DB/AdapterPgSql.php b/lib/private/DB/AdapterPgSql.php
index 7457ab9a77d..bc7fa7698ee 100644
--- a/lib/private/DB/AdapterPgSql.php
+++ b/lib/private/DB/AdapterPgSql.php
@@ -33,7 +33,7 @@ class AdapterPgSql extends Adapter {
return $this->conn->fetchColumn('SELECT lastval()');
}
- const UNIX_TIMESTAMP_REPLACEMENT = 'cast(extract(epoch from current_timestamp) as integer)';
+ public const UNIX_TIMESTAMP_REPLACEMENT = 'cast(extract(epoch from current_timestamp) as integer)';
public function fixupStatement($statement) {
$statement = str_replace('`', '"', $statement);
$statement = str_ireplace('UNIX_TIMESTAMP()', self::UNIX_TIMESTAMP_REPLACEMENT, $statement);
diff --git a/lib/private/DB/ConnectionFactory.php b/lib/private/DB/ConnectionFactory.php
index fe97048aaac..441e4567dbd 100644
--- a/lib/private/DB/ConnectionFactory.php
+++ b/lib/private/DB/ConnectionFactory.php
@@ -41,10 +41,10 @@ use OC\SystemConfig;
*/
class ConnectionFactory {
/** @var string default database name */
- const DEFAULT_DBNAME = 'owncloud';
+ public const DEFAULT_DBNAME = 'owncloud';
/** @var string default database table prefix */
- const DEFAULT_DBTABLEPREFIX = 'oc_';
+ public const DEFAULT_DBTABLEPREFIX = 'oc_';
/**
* @var array
diff --git a/lib/private/DB/ReconnectWrapper.php b/lib/private/DB/ReconnectWrapper.php
index ebb4c56fc6a..df3a0518e35 100644
--- a/lib/private/DB/ReconnectWrapper.php
+++ b/lib/private/DB/ReconnectWrapper.php
@@ -28,7 +28,7 @@ use Doctrine\DBAL\Configuration;
use Doctrine\DBAL\Driver;
class ReconnectWrapper extends \Doctrine\DBAL\Connection {
- const CHECK_CONNECTION_INTERVAL = 60;
+ public const CHECK_CONNECTION_INTERVAL = 60;
private $lastConnectionCheck = null;
diff --git a/lib/private/Encryption/Keys/Storage.php b/lib/private/Encryption/Keys/Storage.php
index 2030f26f8f5..38cbfbfdd9f 100644
--- a/lib/private/Encryption/Keys/Storage.php
+++ b/lib/private/Encryption/Keys/Storage.php
@@ -36,7 +36,7 @@ use OCP\Encryption\Keys\IStorage;
class Storage implements IStorage {
// hidden file which indicate that the folder is a valid key storage
- const KEY_STORAGE_MARKER = '.oc_key_storage';
+ public const KEY_STORAGE_MARKER = '.oc_key_storage';
/** @var View */
private $view;
diff --git a/lib/private/Encryption/Util.php b/lib/private/Encryption/Util.php
index a5414a66796..8b3360c30e0 100644
--- a/lib/private/Encryption/Util.php
+++ b/lib/private/Encryption/Util.php
@@ -38,11 +38,11 @@ use OCP\IConfig;
use OCP\IUser;
class Util {
- const HEADER_START = 'HBEGIN';
- const HEADER_END = 'HEND';
- const HEADER_PADDING_CHAR = '-';
+ public const HEADER_START = 'HBEGIN';
+ public const HEADER_END = 'HEND';
+ public const HEADER_PADDING_CHAR = '-';
- const HEADER_ENCRYPTION_MODULE_KEY = 'oc_encryption_module';
+ public const HEADER_ENCRYPTION_MODULE_KEY = 'oc_encryption_module';
/**
* block size will always be 8192 for a PHP stream
diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php
index f1e8aa978f4..eba4178d9bd 100644
--- a/lib/private/Files/Cache/QuerySearchHelper.php
+++ b/lib/private/Files/Cache/QuerySearchHelper.php
@@ -54,7 +54,7 @@ class QuerySearchHelper {
ISearchComparison::COMPARE_LESS_THAN_EQUAL => 'lt'
];
- const TAG_FAVORITE = '_$!<Favorite>!$_';
+ public const TAG_FAVORITE = '_$!<Favorite>!$_';
/** @var IMimeTypeLoader */
private $mimetypeLoader;
diff --git a/lib/private/Files/Filesystem.php b/lib/private/Files/Filesystem.php
index 1e9902f8871..d3c4e1afc62 100644
--- a/lib/private/Files/Filesystem.php
+++ b/lib/private/Files/Filesystem.php
@@ -92,7 +92,7 @@ class Filesystem {
* classname which used for hooks handling
* used as signalclass in OC_Hooks::emit()
*/
- const CLASSNAME = 'OC_Filesystem';
+ public const CLASSNAME = 'OC_Filesystem';
/**
* signalname emitted before file renaming
@@ -100,7 +100,7 @@ class Filesystem {
* @param string $oldpath
* @param string $newpath
*/
- const signal_rename = 'rename';
+ public const signal_rename = 'rename';
/**
* signal emitted after file renaming
@@ -108,7 +108,7 @@ class Filesystem {
* @param string $oldpath
* @param string $newpath
*/
- const signal_post_rename = 'post_rename';
+ public const signal_post_rename = 'post_rename';
/**
* signal emitted before file/dir creation
@@ -116,7 +116,7 @@ class Filesystem {
* @param string $path
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_create = 'create';
+ public const signal_create = 'create';
/**
* signal emitted after file/dir creation
@@ -124,7 +124,7 @@ class Filesystem {
* @param string $path
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_post_create = 'post_create';
+ public const signal_post_create = 'post_create';
/**
* signal emits before file/dir copy
@@ -133,7 +133,7 @@ class Filesystem {
* @param string $newpath
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_copy = 'copy';
+ public const signal_copy = 'copy';
/**
* signal emits after file/dir copy
@@ -141,7 +141,7 @@ class Filesystem {
* @param string $oldpath
* @param string $newpath
*/
- const signal_post_copy = 'post_copy';
+ public const signal_post_copy = 'post_copy';
/**
* signal emits before file/dir save
@@ -149,14 +149,14 @@ class Filesystem {
* @param string $path
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_write = 'write';
+ public const signal_write = 'write';
/**
* signal emits after file/dir save
*
* @param string $path
*/
- const signal_post_write = 'post_write';
+ public const signal_post_write = 'post_write';
/**
* signal emitted before file/dir update
@@ -164,7 +164,7 @@ class Filesystem {
* @param string $path
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_update = 'update';
+ public const signal_update = 'update';
/**
* signal emitted after file/dir update
@@ -172,38 +172,38 @@ class Filesystem {
* @param string $path
* @param bool $run changing this flag to false in hook handler will cancel event
*/
- const signal_post_update = 'post_update';
+ public const signal_post_update = 'post_update';
/**
* signal emits when reading file/dir
*
* @param string $path
*/
- const signal_read = 'read';
+ public const signal_read = 'read';
/**
* signal emits when removing file/dir
*
* @param string $path
*/
- const signal_delete = 'delete';
+ public const signal_delete = 'delete';
/**
* parameters definitions for signals
*/
- const signal_param_path = 'path';
- const signal_param_oldpath = 'oldpath';
- const signal_param_newpath = 'newpath';
+ public const signal_param_path = 'path';
+ public const signal_param_oldpath = 'oldpath';
+ public const signal_param_newpath = 'newpath';
/**
* run - changing this flag to false in hook handler will cancel event
*/
- const signal_param_run = 'run';
+ public const signal_param_run = 'run';
- const signal_create_mount = 'create_mount';
- const signal_delete_mount = 'delete_mount';
- const signal_param_mount_type = 'mounttype';
- const signal_param_users = 'users';
+ public const signal_create_mount = 'create_mount';
+ public const signal_delete_mount = 'delete_mount';
+ public const signal_param_mount_type = 'mounttype';
+ public const signal_param_users = 'users';
/**
* @var \OC\Files\Storage\StorageFactory $loader
diff --git a/lib/private/Files/ObjectStore/SwiftFactory.php b/lib/private/Files/ObjectStore/SwiftFactory.php
index c7d2e691bbd..59446576400 100644
--- a/lib/private/Files/ObjectStore/SwiftFactory.php
+++ b/lib/private/Files/ObjectStore/SwiftFactory.php
@@ -56,7 +56,7 @@ class SwiftFactory {
private $container = null;
private $logger;
- const DEFAULT_OPTIONS = [
+ public const DEFAULT_OPTIONS = [
'autocreate' => false,
'urlType' => 'publicURL',
'catalogName' => 'swift',
diff --git a/lib/private/Files/Storage/Wrapper/Availability.php b/lib/private/Files/Storage/Wrapper/Availability.php
index b949c9103a7..300ba7e7f7c 100644
--- a/lib/private/Files/Storage/Wrapper/Availability.php
+++ b/lib/private/Files/Storage/Wrapper/Availability.php
@@ -37,7 +37,7 @@ use OCP\IConfig;
* Throws a StorageNotAvailableException for storages with known failures
*/
class Availability extends Wrapper {
- const RECHECK_TTL_SEC = 600; // 10 minutes
+ public const RECHECK_TTL_SEC = 600; // 10 minutes
/** @var IConfig */
protected $config;
diff --git a/lib/private/Files/Utils/Scanner.php b/lib/private/Files/Utils/Scanner.php
index a729da89fb0..996380037b7 100644
--- a/lib/private/Files/Utils/Scanner.php
+++ b/lib/private/Files/Utils/Scanner.php
@@ -61,7 +61,7 @@ use OCP\ILogger;
* @package OC\Files\Utils
*/
class Scanner extends PublicEmitter {
- const MAX_ENTRIES_TO_COMMIT = 10000;
+ public const MAX_ENTRIES_TO_COMMIT = 10000;
/** @var string $user */
private $user;
diff --git a/lib/private/Group/Backend.php b/lib/private/Group/Backend.php
index 0f0e2c743e8..ebd8d3620d4 100644
--- a/lib/private/Group/Backend.php
+++ b/lib/private/Group/Backend.php
@@ -32,7 +32,7 @@ abstract class Backend implements \OCP\GroupInterface {
/**
* error code for functions not provided by the group backend
*/
- const NOT_IMPLEMENTED = -501;
+ public const NOT_IMPLEMENTED = -501;
protected $possibleActions = [
self::CREATE_GROUP => 'createGroup',
diff --git a/lib/private/Group/MetaData.php b/lib/private/Group/MetaData.php
index 880dbf6437c..6950a239678 100644
--- a/lib/private/Group/MetaData.php
+++ b/lib/private/Group/MetaData.php
@@ -35,9 +35,9 @@ use OCP\IGroupManager;
use OCP\IUserSession;
class MetaData {
- const SORT_NONE = 0;
- const SORT_USERCOUNT = 1; // May have performance issues on LDAP backends
- const SORT_GROUPNAME = 2;
+ public const SORT_NONE = 0;
+ public const SORT_USERCOUNT = 1; // May have performance issues on LDAP backends
+ public const SORT_GROUPNAME = 2;
/** @var string */
protected $user;
diff --git a/lib/private/Http/CookieHelper.php b/lib/private/Http/CookieHelper.php
index 7083584bffa..8c20ddb9f65 100644
--- a/lib/private/Http/CookieHelper.php
+++ b/lib/private/Http/CookieHelper.php
@@ -27,9 +27,9 @@ declare(strict_types=1);
namespace OC\Http;
class CookieHelper {
- const SAMESITE_NONE = 0;
- const SAMESITE_LAX = 1;
- const SAMESITE_STRICT = 2;
+ public const SAMESITE_NONE = 0;
+ public const SAMESITE_LAX = 1;
+ public const SAMESITE_STRICT = 2;
public static function setCookie(string $name,
string $value = '',
diff --git a/lib/private/IntegrityCheck/Checker.php b/lib/private/IntegrityCheck/Checker.php
index 1084a9e1dd5..af1e3555c32 100644
--- a/lib/private/IntegrityCheck/Checker.php
+++ b/lib/private/IntegrityCheck/Checker.php
@@ -58,7 +58,7 @@ use phpseclib\File\X509;
* @package OC\IntegrityCheck
*/
class Checker {
- const CACHE_KEY = 'oc.integritycheck.checker';
+ public const CACHE_KEY = 'oc.integritycheck.checker';
/** @var EnvironmentHelper */
private $environmentHelper;
/** @var AppLocator */
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php
index a1afb1f4f0a..03240f48410 100644
--- a/lib/private/L10N/Factory.php
+++ b/lib/private/L10N/Factory.php
@@ -72,7 +72,7 @@ class Factory implements IFactory {
*/
protected $pluralFunctions = [];
- const COMMON_LANGUAGE_CODES = [
+ public const COMMON_LANGUAGE_CODES = [
'en', 'es', 'fr', 'de', 'de_DE', 'ja', 'ar', 'ru', 'nl', 'it',
'pt_BR', 'pt_PT', 'da', 'fi_FI', 'nb_NO', 'sv', 'tr', 'zh_CN', 'ko'
];
diff --git a/lib/private/LargeFileHelper.php b/lib/private/LargeFileHelper.php
index c24657a5c9c..2a6a6714eb3 100755
--- a/lib/private/LargeFileHelper.php
+++ b/lib/private/LargeFileHelper.php
@@ -37,13 +37,13 @@ class LargeFileHelper {
* pow(2, 53) as a base-10 string.
* @var string
*/
- const POW_2_53 = '9007199254740992';
+ public const POW_2_53 = '9007199254740992';
/**
* pow(2, 53) - 1 as a base-10 string.
* @var string
*/
- const POW_2_53_MINUS_1 = '9007199254740991';
+ public const POW_2_53_MINUS_1 = '9007199254740991';
/**
* @brief Checks whether our assumptions hold on the PHP platform we are on.
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index 50544d7149c..237d33cfefa 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -32,7 +32,7 @@ use OC\HintException;
use OC\Setup;
class ExceptionSerializer {
- const methodsWithSensitiveParameters = [
+ public const methodsWithSensitiveParameters = [
// Session/User
'completeLogin',
'login',
@@ -86,7 +86,7 @@ class ExceptionSerializer {
'update',
];
- const methodsWithSensitiveParametersByClass = [
+ public const methodsWithSensitiveParametersByClass = [
SetupController::class => [
'run',
'display',
diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php
index 0e6552ba436..52c5af4ef98 100644
--- a/lib/private/Memcache/Factory.php
+++ b/lib/private/Memcache/Factory.php
@@ -36,7 +36,7 @@ use OCP\ILogger;
use OCP\IMemcache;
class Factory implements ICacheFactory {
- const NULL_CACHE = NullCache::class;
+ public const NULL_CACHE = NullCache::class;
/**
* @var string $globalPrefix
diff --git a/lib/private/MemoryInfo.php b/lib/private/MemoryInfo.php
index 520225fc6d1..0e70b500532 100644
--- a/lib/private/MemoryInfo.php
+++ b/lib/private/MemoryInfo.php
@@ -30,7 +30,7 @@ namespace OC;
* Helper class that covers memory info.
*/
class MemoryInfo {
- const RECOMMENDED_MEMORY_LIMIT = 512 * 1024 * 1024;
+ public const RECOMMENDED_MEMORY_LIMIT = 512 * 1024 * 1024;
/**
* Tests if the memory limit is greater or equal the recommended value.
diff --git a/lib/private/Remote/User.php b/lib/private/Remote/User.php
index 5519d7dc22f..31ded598b7c 100644
--- a/lib/private/Remote/User.php
+++ b/lib/private/Remote/User.php
@@ -26,7 +26,7 @@ namespace OC\Remote;
use OCP\Remote\IUser;
class User implements IUser {
- const EXPECTED_KEYS = [
+ public const EXPECTED_KEYS = [
'id',
'email',
'displayname',
diff --git a/lib/private/Repair/Owncloud/SaveAccountsTableData.php b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
index 6dd49e6c9fd..6eccf53c5a8 100644
--- a/lib/private/Repair/Owncloud/SaveAccountsTableData.php
+++ b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
@@ -35,7 +35,7 @@ use OCP\PreConditionNotMetException;
* before the data structure is changed and the information is gone
*/
class SaveAccountsTableData implements IRepairStep {
- const BATCH_SIZE = 75;
+ public const BATCH_SIZE = 75;
/** @var IDBConnection */
protected $db;
diff --git a/lib/private/Repair/RepairInvalidShares.php b/lib/private/Repair/RepairInvalidShares.php
index becf8ba7594..a0fe246571a 100644
--- a/lib/private/Repair/RepairInvalidShares.php
+++ b/lib/private/Repair/RepairInvalidShares.php
@@ -32,7 +32,7 @@ use OCP\Migration\IRepairStep;
* Repairs shares with invalid data
*/
class RepairInvalidShares implements IRepairStep {
- const CHUNK_SIZE = 200;
+ public const CHUNK_SIZE = 200;
/** @var \OCP\IConfig */
protected $config;
diff --git a/lib/private/Security/Bruteforce/Throttler.php b/lib/private/Security/Bruteforce/Throttler.php
index c04e0e1b383..d1fead6759f 100644
--- a/lib/private/Security/Bruteforce/Throttler.php
+++ b/lib/private/Security/Bruteforce/Throttler.php
@@ -48,7 +48,7 @@ use OCP\ILogger;
* @package OC\Security\Bruteforce
*/
class Throttler {
- const LOGIN_ACTION = 'login';
+ public const LOGIN_ACTION = 'login';
/** @var IDBConnection */
private $db;
diff --git a/lib/private/Security/CredentialsManager.php b/lib/private/Security/CredentialsManager.php
index ab06a807613..770919dacd7 100644
--- a/lib/private/Security/CredentialsManager.php
+++ b/lib/private/Security/CredentialsManager.php
@@ -33,7 +33,7 @@ use OCP\Security\ICrypto;
* @package OC\Security
*/
class CredentialsManager implements ICredentialsManager {
- const DB_TABLE = 'credentials';
+ public const DB_TABLE = 'credentials';
/** @var ICrypto */
protected $crypto;
diff --git a/lib/private/Session/CryptoSessionData.php b/lib/private/Session/CryptoSessionData.php
index 892c2436040..fc7693b71b2 100644
--- a/lib/private/Session/CryptoSessionData.php
+++ b/lib/private/Session/CryptoSessionData.php
@@ -50,7 +50,7 @@ class CryptoSessionData implements \ArrayAccess, ISession {
protected $sessionValues;
/** @var bool */
protected $isModified = false;
- const encryptedSessionName = 'encrypted_session_data';
+ public const encryptedSessionName = 'encrypted_session_data';
/**
* @param ISession $session
diff --git a/lib/private/Session/CryptoWrapper.php b/lib/private/Session/CryptoWrapper.php
index bb82652a01d..f4d30bee145 100644
--- a/lib/private/Session/CryptoWrapper.php
+++ b/lib/private/Session/CryptoWrapper.php
@@ -48,7 +48,7 @@ use OCP\Security\ISecureRandom;
* @package OC\Session
*/
class CryptoWrapper {
- const COOKIE_NAME = 'oc_sessionPassphrase';
+ public const COOKIE_NAME = 'oc_sessionPassphrase';
/** @var IConfig */
protected $config;
diff --git a/lib/private/Share/Constants.php b/lib/private/Share/Constants.php
index d1b47f1dd47..18f6864b6c9 100644
--- a/lib/private/Share/Constants.php
+++ b/lib/private/Share/Constants.php
@@ -37,50 +37,50 @@ class Constants {
/**
* @deprecated 17.0.0 - use IShare::TYPE_USER instead
*/
- const SHARE_TYPE_USER = 0;
+ public const SHARE_TYPE_USER = 0;
/**
* @deprecated 17.0.0 - use IShare::TYPE_GROUP instead
*/
- const SHARE_TYPE_GROUP = 1;
+ public const SHARE_TYPE_GROUP = 1;
// const SHARE_TYPE_USERGROUP = 2; // Internal type used by DefaultShareProvider
/**
* @deprecated 17.0.0 - use IShare::TYPE_LINK instead
*/
- const SHARE_TYPE_LINK = 3;
+ public const SHARE_TYPE_LINK = 3;
/**
* @deprecated 17.0.0 - use IShare::TYPE_EMAIL instead
*/
- const SHARE_TYPE_EMAIL = 4;
- const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it
+ public const SHARE_TYPE_EMAIL = 4;
+ public const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it
/**
* @deprecated 17.0.0 - use IShare::TYPE_REMOTE instead
*/
- const SHARE_TYPE_REMOTE = 6;
+ public const SHARE_TYPE_REMOTE = 6;
/**
* @deprecated 17.0.0 - use IShare::TYPE_CIRCLE instead
*/
- const SHARE_TYPE_CIRCLE = 7;
+ public const SHARE_TYPE_CIRCLE = 7;
/**
* @deprecated 17.0.0 - use IShare::TYPE_GUEST instead
*/
- const SHARE_TYPE_GUEST = 8;
+ public const SHARE_TYPE_GUEST = 8;
/**
* @deprecated 17.0.0 - use IShare::REMOTE_GROUP instead
*/
- const SHARE_TYPE_REMOTE_GROUP = 9;
+ public const SHARE_TYPE_REMOTE_GROUP = 9;
/**
* @deprecated 17.0.0 - use IShare::TYPE_ROOM instead
*/
- const SHARE_TYPE_ROOM = 10;
+ public const SHARE_TYPE_ROOM = 10;
// const SHARE_TYPE_USERROOM = 11; // Internal type used by RoomShareProvider
- const FORMAT_NONE = -1;
- const FORMAT_STATUSES = -2;
- const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
+ public const FORMAT_NONE = -1;
+ public const FORMAT_STATUSES = -2;
+ public const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
- const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
+ public const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
- const TOKEN_LENGTH = 15; // old (oc7) length is 32, keep token length in db at least that for compatibility
+ public const TOKEN_LENGTH = 15; // old (oc7) length is 32, keep token length in db at least that for compatibility
protected static $shareTypeUserAndGroups = -1;
protected static $shareTypeGroupUserUnique = 2;
diff --git a/lib/private/Share20/DefaultShareProvider.php b/lib/private/Share20/DefaultShareProvider.php
index 41a727593b3..75745a7fe97 100644
--- a/lib/private/Share20/DefaultShareProvider.php
+++ b/lib/private/Share20/DefaultShareProvider.php
@@ -63,7 +63,7 @@ use OCP\Share\IShareProvider;
class DefaultShareProvider implements IShareProvider {
// Special share type for user modified group shares
- const SHARE_TYPE_USERGROUP = 2;
+ public const SHARE_TYPE_USERGROUP = 2;
/** @var IDBConnection */
private $dbConn;
diff --git a/lib/private/SystemTag/SystemTagManager.php b/lib/private/SystemTag/SystemTagManager.php
index 2d7b1bc3ae4..a718a007e34 100644
--- a/lib/private/SystemTag/SystemTagManager.php
+++ b/lib/private/SystemTag/SystemTagManager.php
@@ -44,8 +44,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
* Manager class for system tags
*/
class SystemTagManager implements ISystemTagManager {
- const TAG_TABLE = 'systemtag';
- const TAG_GROUP_TABLE = 'systemtag_group';
+ public const TAG_TABLE = 'systemtag';
+ public const TAG_GROUP_TABLE = 'systemtag_group';
/** @var IDBConnection */
protected $connection;
diff --git a/lib/private/SystemTag/SystemTagObjectMapper.php b/lib/private/SystemTag/SystemTagObjectMapper.php
index eb33d2d30bb..c6d6d09b95a 100644
--- a/lib/private/SystemTag/SystemTagObjectMapper.php
+++ b/lib/private/SystemTag/SystemTagObjectMapper.php
@@ -38,7 +38,7 @@ use OCP\SystemTag\TagNotFoundException;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
class SystemTagObjectMapper implements ISystemTagObjectMapper {
- const RELATION_TABLE = 'systemtag_object_mapping';
+ public const RELATION_TABLE = 'systemtag_object_mapping';
/** @var ISystemTagManager */
protected $tagManager;
diff --git a/lib/private/Tags.php b/lib/private/Tags.php
index a176967bd2b..6d06b3a4829 100644
--- a/lib/private/Tags.php
+++ b/lib/private/Tags.php
@@ -112,8 +112,8 @@ class Tags implements ITags {
*/
private $backend;
- const TAG_TABLE = '*PREFIX*vcategory';
- const RELATION_TABLE = '*PREFIX*vcategory_to_object';
+ public const TAG_TABLE = '*PREFIX*vcategory';
+ public const RELATION_TABLE = '*PREFIX*vcategory_to_object';
/**
* Constructor.
diff --git a/lib/private/TempManager.php b/lib/private/TempManager.php
index 13735d69d47..8b47193feaa 100644
--- a/lib/private/TempManager.php
+++ b/lib/private/TempManager.php
@@ -45,7 +45,7 @@ class TempManager implements ITempManager {
protected $config;
/** Prefix */
- const TMP_PREFIX = 'oc_tmp_';
+ public const TMP_PREFIX = 'oc_tmp_';
/**
* @param \OCP\ILogger $logger
diff --git a/lib/private/Updater/ChangesCheck.php b/lib/private/Updater/ChangesCheck.php
index 8700b9609d2..cde7517d3c5 100644
--- a/lib/private/Updater/ChangesCheck.php
+++ b/lib/private/Updater/ChangesCheck.php
@@ -40,9 +40,9 @@ class ChangesCheck {
/** @var ILogger */
private $logger;
- const RESPONSE_NO_CONTENT = 0;
- const RESPONSE_USE_CACHE = 1;
- const RESPONSE_HAS_CONTENT = 2;
+ public const RESPONSE_NO_CONTENT = 0;
+ public const RESPONSE_USE_CACHE = 1;
+ public const RESPONSE_HAS_CONTENT = 2;
public function __construct(IClientService $clientService, ChangesMapper $mapper, ILogger $logger) {
$this->clientService = $clientService;
diff --git a/lib/private/Updater/ChangesMapper.php b/lib/private/Updater/ChangesMapper.php
index b79eadbff58..b3b578f61e1 100644
--- a/lib/private/Updater/ChangesMapper.php
+++ b/lib/private/Updater/ChangesMapper.php
@@ -32,7 +32,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
class ChangesMapper extends QBMapper {
- const TABLE_NAME = 'whats_new';
+ public const TABLE_NAME = 'whats_new';
public function __construct(IDBConnection $db) {
parent::__construct($db, self::TABLE_NAME);
diff --git a/lib/private/User/Backend.php b/lib/private/User/Backend.php
index 354e1c3fd71..477448279a5 100644
--- a/lib/private/User/Backend.php
+++ b/lib/private/User/Backend.php
@@ -34,19 +34,19 @@ abstract class Backend implements UserInterface {
/**
* error code for functions not provided by the user backend
*/
- const NOT_IMPLEMENTED = -501;
+ public const NOT_IMPLEMENTED = -501;
/**
* actions that user backends can define
*/
- const CREATE_USER = 1; // 1 << 0
- const SET_PASSWORD = 16; // 1 << 4
- const CHECK_PASSWORD = 256; // 1 << 8
- const GET_HOME = 4096; // 1 << 12
- const GET_DISPLAYNAME = 65536; // 1 << 16
- const SET_DISPLAYNAME = 1048576; // 1 << 20
- const PROVIDE_AVATAR = 16777216; // 1 << 24
- const COUNT_USERS = 268435456; // 1 << 28
+ public const CREATE_USER = 1; // 1 << 0
+ public const SET_PASSWORD = 16; // 1 << 4
+ public const CHECK_PASSWORD = 256; // 1 << 8
+ public const GET_HOME = 4096; // 1 << 12
+ public const GET_DISPLAYNAME = 65536; // 1 << 16
+ public const SET_DISPLAYNAME = 1048576; // 1 << 20
+ public const PROVIDE_AVATAR = 16777216; // 1 << 24
+ public const COUNT_USERS = 268435456; // 1 << 28
protected $possibleActions = [
self::CREATE_USER => 'createUser',
diff --git a/lib/private/legacy/OC_App.php b/lib/private/legacy/OC_App.php
index 7b67dd3eada..2454d6be4f0 100644
--- a/lib/private/legacy/OC_App.php
+++ b/lib/private/legacy/OC_App.php
@@ -71,8 +71,8 @@ class OC_App {
private static $loadedApps = [];
private static $altLogin = [];
private static $alreadyRegistered = [];
- const supportedApp = 300;
- const officialApp = 200;
+ public const supportedApp = 300;
+ public const officialApp = 200;
/**
* clean the appId
diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php
index e046a577026..ddb824cd6cd 100644
--- a/lib/private/legacy/OC_Files.php
+++ b/lib/private/legacy/OC_Files.php
@@ -50,11 +50,11 @@ use OCP\Lock\ILockingProvider;
*
*/
class OC_Files {
- const FILE = 1;
- const ZIP_FILES = 2;
- const ZIP_DIR = 3;
+ public const FILE = 1;
+ public const ZIP_FILES = 2;
+ public const ZIP_DIR = 3;
- const UPLOAD_MIN_LIMIT_BYTES = 1048576; // 1 MiB
+ public const UPLOAD_MIN_LIMIT_BYTES = 1048576; // 1 MiB
private static $multipartBoundary = '';