summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2022-02-03 23:08:11 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2022-02-03 23:12:51 +0100
commit2bf57cbab8b7e9dbc42da89128e269a05ff7beed (patch)
tree05749321b09c9a9c3bff71259a9d8e3f893e4b32 /apps
parent5e5c31ea845c9551e3846a193f9e00c212b9b4ce (diff)
downloadnextcloud-server-2bf57cbab8b7e9dbc42da89128e269a05ff7beed.tar.gz
nextcloud-server-2bf57cbab8b7e9dbc42da89128e269a05ff7beed.zip
fix overwriting of SUCCESS and INVALID consts
- already defined in Symfony\Component\Console\Command\Command Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Command/TestConfig.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/Command/TestConfig.php b/apps/user_ldap/lib/Command/TestConfig.php
index 781af12660d..a1a4f14a232 100644
--- a/apps/user_ldap/lib/Command/TestConfig.php
+++ b/apps/user_ldap/lib/Command/TestConfig.php
@@ -35,8 +35,8 @@ use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class TestConfig extends Command {
- protected const SUCCESS = 0;
- protected const INVALID = 1;
+ protected const ESTABLISHED = 0;
+ protected const CONF_INVALID = 1;
protected const BINDFAILURE = 2;
protected const SEARCHFAILURE = 3;
@@ -71,10 +71,10 @@ class TestConfig extends Command {
$result = $this->testConfig($configID);
switch ($result) {
- case static::SUCCESS:
+ case static::ESTABLISHED:
$output->writeln('The configuration is valid and the connection could be established!');
return 0;
- case static::INVALID:
+ case static::CONF_INVALID:
$output->writeln('The configuration is invalid. Please have a look at the logs for further details.');
break;
case static::BINDFAILURE:
@@ -103,7 +103,7 @@ class TestConfig extends Command {
if (!$connection->setConfiguration([
'ldap_configuration_active' => 1,
])) {
- return static::INVALID;
+ return static::CONF_INVALID;
}
if (!$connection->bind()) {
return static::BINDFAILURE;
@@ -113,6 +113,6 @@ class TestConfig extends Command {
if (!is_int($result) || ($result <= 0)) {
return static::SEARCHFAILURE;
}
- return static::SUCCESS;
+ return static::ESTABLISHED;
}
}