summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-10 16:54:27 +0200
commit28f8eb5dba60a75f7e22debbdc26f1d3164deb18 (patch)
tree5bb8a104ec6b5af821b81cf392c69167deca4c0a /apps/files/lib
parent1584c9ae9c23d2a7915750ef9203cba0bcebf766 (diff)
downloadnextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.tar.gz
nextcloud-server-28f8eb5dba60a75f7e22debbdc26f1d3164deb18.zip
Add visibility to all constants
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Activity/FavoriteProvider.php4
-rw-r--r--apps/files/lib/Activity/Helper.php2
-rw-r--r--apps/files/lib/BackgroundJob/DeleteOrphanedItems.php2
-rw-r--r--apps/files/lib/BackgroundJob/ScanFiles.php2
-rw-r--r--apps/files/lib/Command/DeleteOrphanedFiles.php2
5 files changed, 6 insertions, 6 deletions
diff --git a/apps/files/lib/Activity/FavoriteProvider.php b/apps/files/lib/Activity/FavoriteProvider.php
index 9cf1255765b..8692b83f008 100644
--- a/apps/files/lib/Activity/FavoriteProvider.php
+++ b/apps/files/lib/Activity/FavoriteProvider.php
@@ -32,8 +32,8 @@ use OCP\IURLGenerator;
use OCP\L10N\IFactory;
class FavoriteProvider implements IProvider {
- const SUBJECT_ADDED = 'added_favorite';
- const SUBJECT_REMOVED = 'removed_favorite';
+ public const SUBJECT_ADDED = 'added_favorite';
+ public const SUBJECT_REMOVED = 'removed_favorite';
/** @var IFactory */
protected $languageFactory;
diff --git a/apps/files/lib/Activity/Helper.php b/apps/files/lib/Activity/Helper.php
index df9ed7af909..c274df2ccbb 100644
--- a/apps/files/lib/Activity/Helper.php
+++ b/apps/files/lib/Activity/Helper.php
@@ -27,7 +27,7 @@ use OCP\ITagManager;
class Helper {
/** If a user has a lot of favorites the query might get too slow and long */
- const FAVORITE_LIMIT = 50;
+ public const FAVORITE_LIMIT = 50;
/** @var ITagManager */
protected $tagManager;
diff --git a/apps/files/lib/BackgroundJob/DeleteOrphanedItems.php b/apps/files/lib/BackgroundJob/DeleteOrphanedItems.php
index b0f91b70401..ca890269a93 100644
--- a/apps/files/lib/BackgroundJob/DeleteOrphanedItems.php
+++ b/apps/files/lib/BackgroundJob/DeleteOrphanedItems.php
@@ -31,7 +31,7 @@ use OCP\DB\QueryBuilder\IQueryBuilder;
* Delete all share entries that have no matching entries in the file cache table.
*/
class DeleteOrphanedItems extends TimedJob {
- const CHUNK_SIZE = 200;
+ public const CHUNK_SIZE = 200;
/** @var \OCP\IDBConnection */
protected $connection;
diff --git a/apps/files/lib/BackgroundJob/ScanFiles.php b/apps/files/lib/BackgroundJob/ScanFiles.php
index f1ff1a633ef..b9f37ca8116 100644
--- a/apps/files/lib/BackgroundJob/ScanFiles.php
+++ b/apps/files/lib/BackgroundJob/ScanFiles.php
@@ -48,7 +48,7 @@ class ScanFiles extends \OC\BackgroundJob\TimedJob {
private $logger;
/** Amount of users that should get scanned per execution */
- const USERS_PER_SESSION = 500;
+ public const USERS_PER_SESSION = 500;
/**
* @param IConfig|null $config
diff --git a/apps/files/lib/Command/DeleteOrphanedFiles.php b/apps/files/lib/Command/DeleteOrphanedFiles.php
index c5072983ef4..855958511d7 100644
--- a/apps/files/lib/Command/DeleteOrphanedFiles.php
+++ b/apps/files/lib/Command/DeleteOrphanedFiles.php
@@ -32,7 +32,7 @@ use Symfony\Component\Console\Output\OutputInterface;
* Delete all file entries that have no matching entries in the storage table.
*/
class DeleteOrphanedFiles extends Command {
- const CHUNK_SIZE = 200;
+ public const CHUNK_SIZE = 200;
/**
* @var IDBConnection