summaryrefslogtreecommitdiffstats
path: root/lib/private/App
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/private/App
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/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/Fetcher.php2
-rw-r--r--lib/private/App/CodeChecker/CodeChecker.php16
-rw-r--r--lib/private/App/CompareVersion.php8
3 files changed, 13 insertions, 13 deletions
diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php
index fd0600a3ce4..a54d149df62 100644
--- a/lib/private/App/AppStore/Fetcher/Fetcher.php
+++ b/lib/private/App/AppStore/Fetcher/Fetcher.php
@@ -40,7 +40,7 @@ use OCP\IConfig;
use OCP\ILogger;
abstract class Fetcher {
- const INVALIDATE_AFTER_SECONDS = 300;
+ public const INVALIDATE_AFTER_SECONDS = 300;
/** @var IAppData */
protected $appData;
diff --git a/lib/private/App/CodeChecker/CodeChecker.php b/lib/private/App/CodeChecker/CodeChecker.php
index aa8f43e6af2..01969006af4 100644
--- a/lib/private/App/CodeChecker/CodeChecker.php
+++ b/lib/private/App/CodeChecker/CodeChecker.php
@@ -37,14 +37,14 @@ use RegexIterator;
use SplFileInfo;
class CodeChecker extends BasicEmitter {
- const CLASS_EXTENDS_NOT_ALLOWED = 1000;
- const CLASS_IMPLEMENTS_NOT_ALLOWED = 1001;
- const STATIC_CALL_NOT_ALLOWED = 1002;
- const CLASS_CONST_FETCH_NOT_ALLOWED = 1003;
- const CLASS_NEW_NOT_ALLOWED = 1004;
- const OP_OPERATOR_USAGE_DISCOURAGED = 1005;
- const CLASS_USE_NOT_ALLOWED = 1006;
- const CLASS_METHOD_CALL_NOT_ALLOWED = 1007;
+ public const CLASS_EXTENDS_NOT_ALLOWED = 1000;
+ public const CLASS_IMPLEMENTS_NOT_ALLOWED = 1001;
+ public const STATIC_CALL_NOT_ALLOWED = 1002;
+ public const CLASS_CONST_FETCH_NOT_ALLOWED = 1003;
+ public const CLASS_NEW_NOT_ALLOWED = 1004;
+ public const OP_OPERATOR_USAGE_DISCOURAGED = 1005;
+ public const CLASS_USE_NOT_ALLOWED = 1006;
+ public const CLASS_METHOD_CALL_NOT_ALLOWED = 1007;
/** @var Parser */
private $parser;
diff --git a/lib/private/App/CompareVersion.php b/lib/private/App/CompareVersion.php
index 12cd7615769..5d38d4c358e 100644
--- a/lib/private/App/CompareVersion.php
+++ b/lib/private/App/CompareVersion.php
@@ -26,10 +26,10 @@ namespace OC\App;
use InvalidArgumentException;
class CompareVersion {
- const REGEX_MAJOR = '/^\d+$/';
- const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
- const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
- const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
+ public const REGEX_MAJOR = '/^\d+$/';
+ public const REGEX_MAJOR_MINOR = '/^\d+.\d+$/';
+ public const REGEX_MAJOR_MINOR_PATCH = '/^\d+.\d+.\d+$/';
+ public const REGEX_SERVER = '/^\d+.\d+.\d+(.\d+)?$/';
/**
* Checks if the given server version fulfills the given (app) version requirements.