aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions
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_versions
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_versions')
-rw-r--r--apps/files_versions/lib/AppInfo/Application.php2
-rw-r--r--apps/files_versions/lib/BackgroundJob/ExpireVersions.php2
-rw-r--r--apps/files_versions/lib/Expiration.php2
-rw-r--r--apps/files_versions/lib/Storage.php12
-rw-r--r--apps/files_versions/tests/ExpirationTest.php2
-rw-r--r--apps/files_versions/tests/VersioningTest.php6
6 files changed, 13 insertions, 13 deletions
diff --git a/apps/files_versions/lib/AppInfo/Application.php b/apps/files_versions/lib/AppInfo/Application.php
index 36d7b6d2767..23942bf8952 100644
--- a/apps/files_versions/lib/AppInfo/Application.php
+++ b/apps/files_versions/lib/AppInfo/Application.php
@@ -42,7 +42,7 @@ use OCP\AppFramework\IAppContainer;
use OCP\EventDispatcher\IEventDispatcher;
class Application extends App {
- const APP_ID = 'files_versions';
+ public const APP_ID = 'files_versions';
public function __construct(array $urlParams = []) {
parent::__construct(self::APP_ID, $urlParams);
diff --git a/apps/files_versions/lib/BackgroundJob/ExpireVersions.php b/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
index 4c8f82a1c76..201824389d5 100644
--- a/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
+++ b/apps/files_versions/lib/BackgroundJob/ExpireVersions.php
@@ -31,7 +31,7 @@ use OCP\IUser;
use OCP\IUserManager;
class ExpireVersions extends \OC\BackgroundJob\TimedJob {
- const ITEMS_PER_SESSION = 1000;
+ public const ITEMS_PER_SESSION = 1000;
/**
* @var Expiration
diff --git a/apps/files_versions/lib/Expiration.php b/apps/files_versions/lib/Expiration.php
index c9c91d67d7f..ab1eeab6901 100644
--- a/apps/files_versions/lib/Expiration.php
+++ b/apps/files_versions/lib/Expiration.php
@@ -30,7 +30,7 @@ use OCP\IConfig;
class Expiration {
// how long do we keep files a version if no other value is defined in the config file (unit: days)
- const NO_OBLIGATION = -1;
+ public const NO_OBLIGATION = -1;
/** @var ITimeFactory */
private $timeFactory;
diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php
index f62650e539d..cb5a02581b5 100644
--- a/apps/files_versions/lib/Storage.php
+++ b/apps/files_versions/lib/Storage.php
@@ -57,13 +57,13 @@ use OCP\Lock\ILockingProvider;
use OCP\User;
class Storage {
- const DEFAULTENABLED=true;
- const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota
- const VERSIONS_ROOT = 'files_versions/';
+ public const DEFAULTENABLED=true;
+ public const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota
+ public const VERSIONS_ROOT = 'files_versions/';
- const DELETE_TRIGGER_MASTER_REMOVED = 0;
- const DELETE_TRIGGER_RETENTION_CONSTRAINT = 1;
- const DELETE_TRIGGER_QUOTA_EXCEEDED = 2;
+ public const DELETE_TRIGGER_MASTER_REMOVED = 0;
+ public const DELETE_TRIGGER_RETENTION_CONSTRAINT = 1;
+ public const DELETE_TRIGGER_QUOTA_EXCEEDED = 2;
// files for which we can remove the versions after the delete operation was successful
private static $deletedFiles = [];
diff --git a/apps/files_versions/tests/ExpirationTest.php b/apps/files_versions/tests/ExpirationTest.php
index 426d07e4b42..1979da624c7 100644
--- a/apps/files_versions/tests/ExpirationTest.php
+++ b/apps/files_versions/tests/ExpirationTest.php
@@ -31,7 +31,7 @@ use OCP\IConfig;
use PHPUnit\Framework\MockObject\MockObject;
class ExpirationTest extends \Test\TestCase {
- const SECONDS_PER_DAY = 86400; //60*60*24
+ public const SECONDS_PER_DAY = 86400; //60*60*24
public function expirationData() {
$today = 100*self::SECONDS_PER_DAY;
diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php
index c3ae186e73e..26429574364 100644
--- a/apps/files_versions/tests/VersioningTest.php
+++ b/apps/files_versions/tests/VersioningTest.php
@@ -47,9 +47,9 @@ use OCP\IUser;
* @group DB
*/
class VersioningTest extends \Test\TestCase {
- const TEST_VERSIONS_USER = 'test-versions-user';
- const TEST_VERSIONS_USER2 = 'test-versions-user2';
- const USERS_VERSIONS_ROOT = '/test-versions-user/files_versions';
+ public const TEST_VERSIONS_USER = 'test-versions-user';
+ public const TEST_VERSIONS_USER2 = 'test-versions-user2';
+ public const USERS_VERSIONS_ROOT = '/test-versions-user/files_versions';
/**
* @var \OC\Files\View