aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Cache
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 /lib/public/Files/Cache
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 'lib/public/Files/Cache')
-rw-r--r--lib/public/Files/Cache/ICache.php8
-rw-r--r--lib/public/Files/Cache/ICacheEntry.php2
-rw-r--r--lib/public/Files/Cache/IScanner.php12
-rw-r--r--lib/public/Files/Cache/IWatcher.php6
4 files changed, 14 insertions, 14 deletions
diff --git a/lib/public/Files/Cache/ICache.php b/lib/public/Files/Cache/ICache.php
index d1388f02b1d..643a2bad628 100644
--- a/lib/public/Files/Cache/ICache.php
+++ b/lib/public/Files/Cache/ICache.php
@@ -37,10 +37,10 @@ use OCP\Files\Search\ISearchQuery;
* @since 9.0.0
*/
interface ICache {
- const NOT_FOUND = 0;
- const PARTIAL = 1; //only partial data available, file not cached in the database
- const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
- const COMPLETE = 3;
+ public const NOT_FOUND = 0;
+ public const PARTIAL = 1; //only partial data available, file not cached in the database
+ public const SHALLOW = 2; //folder in cache, but not all child files are completely scanned
+ public const COMPLETE = 3;
/**
* Get the numeric storage id for this cache's storage
diff --git a/lib/public/Files/Cache/ICacheEntry.php b/lib/public/Files/Cache/ICacheEntry.php
index 369c8b69fc1..c9766620885 100644
--- a/lib/public/Files/Cache/ICacheEntry.php
+++ b/lib/public/Files/Cache/ICacheEntry.php
@@ -28,7 +28,7 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface ICacheEntry {
- const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
+ public const DIRECTORY_MIMETYPE = 'httpd/unix-directory';
/**
* Get the numeric id of a file
diff --git a/lib/public/Files/Cache/IScanner.php b/lib/public/Files/Cache/IScanner.php
index e12561eb0c5..c15d42315bf 100644
--- a/lib/public/Files/Cache/IScanner.php
+++ b/lib/public/Files/Cache/IScanner.php
@@ -28,13 +28,13 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface IScanner {
- const SCAN_RECURSIVE_INCOMPLETE = 2; // only recursive into not fully scanned folders
- const SCAN_RECURSIVE = true;
- const SCAN_SHALLOW = false;
+ public const SCAN_RECURSIVE_INCOMPLETE = 2; // only recursive into not fully scanned folders
+ public const SCAN_RECURSIVE = true;
+ public const SCAN_SHALLOW = false;
- const REUSE_NONE = 0;
- const REUSE_ETAG = 1;
- const REUSE_SIZE = 2;
+ public const REUSE_NONE = 0;
+ public const REUSE_ETAG = 1;
+ public const REUSE_SIZE = 2;
/**
* scan a single file and store it in the cache
diff --git a/lib/public/Files/Cache/IWatcher.php b/lib/public/Files/Cache/IWatcher.php
index 0c8065828e7..e279c8b07e0 100644
--- a/lib/public/Files/Cache/IWatcher.php
+++ b/lib/public/Files/Cache/IWatcher.php
@@ -28,9 +28,9 @@ namespace OCP\Files\Cache;
* @since 9.0.0
*/
interface IWatcher {
- const CHECK_NEVER = 0; // never check the underlying filesystem for updates
- const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
- const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
+ public const CHECK_NEVER = 0; // never check the underlying filesystem for updates
+ public const CHECK_ONCE = 1; // check the underlying filesystem for updates once every request for each file
+ public const CHECK_ALWAYS = 2; // always check the underlying filesystem for updates
/**
* @param int $policy either IWatcher::CHECK_NEVER, IWatcher::CHECK_ONCE, IWatcher::CHECK_ALWAYS