summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2020-04-11 08:21:35 +0200
committerGitHub <noreply@github.com>2020-04-11 08:21:35 +0200
commitb5a30d5cd6b53831c0d6d2fd074dc0000fa811de (patch)
tree386f3cb5df4630a1e87dae706667772e590596b8 /apps/files
parent97de425a171adf9194dae75eede74cf9f3356cc8 (diff)
parenteea282ccc0d9dfae2d321efddce99cdb18158338 (diff)
downloadnextcloud-server-b5a30d5cd6b53831c0d6d2fd074dc0000fa811de.tar.gz
nextcloud-server-b5a30d5cd6b53831c0d6d2fd074dc0000fa811de.zip
Merge pull request #20426 from nextcloud/techdebt/psr2
It is done
Diffstat (limited to 'apps/files')
-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
-rw-r--r--apps/files/tests/HelperTest.php2
6 files changed, 7 insertions, 7 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
diff --git a/apps/files/tests/HelperTest.php b/apps/files/tests/HelperTest.php
index 867d2dab4b0..974d1187f2a 100644
--- a/apps/files/tests/HelperTest.php
+++ b/apps/files/tests/HelperTest.php
@@ -61,7 +61,7 @@ class HelperTest extends \Test\TestCase {
];
}
- function sortDataProvider() {
+ public function sortDataProvider() {
return [
[
'name',