From 28f8eb5dba60a75f7e22debbdc26f1d3164deb18 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 10 Apr 2020 16:54:27 +0200 Subject: Add visibility to all constants Signed-off-by: Christoph Wurst --- lib/public/Files/Cache/ICache.php | 8 ++++---- lib/public/Files/Cache/ICacheEntry.php | 2 +- lib/public/Files/Cache/IScanner.php | 12 ++++++------ lib/public/Files/Cache/IWatcher.php | 6 +++--- 4 files changed, 14 insertions(+), 14 deletions(-) (limited to 'lib/public/Files/Cache') 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 -- cgit v1.2.3