summaryrefslogtreecommitdiffstats
path: root/core/Command/Config
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-02-13 21:48:24 +0100
committerMorris Jobke <hey@morrisjobke.de>2018-02-13 21:48:24 +0100
commit954da26e26a6f0011efa1432e9de4264e5f5e033 (patch)
tree4ec1aecaaf672bd8fc362f59261abbf1a1ea7bcf /core/Command/Config
parent3fc6d6234e39914d8e6e7d4b9ffe0b5420d3aa2d (diff)
downloadnextcloud-server-954da26e26a6f0011efa1432e9de4264e5f5e033.tar.gz
nextcloud-server-954da26e26a6f0011efa1432e9de4264e5f5e033.zip
Use non aliased method instead
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/Command/Config')
-rw-r--r--core/Command/Config/System/DeleteConfig.php2
-rw-r--r--core/Command/Config/System/SetConfig.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Command/Config/System/DeleteConfig.php b/core/Command/Config/System/DeleteConfig.php
index 216cf4eb640..429dd806b71 100644
--- a/core/Command/Config/System/DeleteConfig.php
+++ b/core/Command/Config/System/DeleteConfig.php
@@ -64,7 +64,7 @@ class DeleteConfig extends Base {
$configNames = $input->getArgument('name');
$configName = $configNames[0];
- if (sizeof($configNames) > 1) {
+ if (count($configNames) > 1) {
if ($input->hasParameterOption('--error-if-not-exists') && !in_array($configName, $this->systemConfig->getKeys())) {
$output->writeln('<error>System config ' . implode(' => ', $configNames) . ' could not be deleted because it did not exist</error>');
return 1;
diff --git a/core/Command/Config/System/SetConfig.php b/core/Command/Config/System/SetConfig.php
index 992fca8d084..92c503907bd 100644
--- a/core/Command/Config/System/SetConfig.php
+++ b/core/Command/Config/System/SetConfig.php
@@ -81,7 +81,7 @@ class SetConfig extends Base {
$configValue = $this->castValue($input->getOption('value'), $input->getOption('type'));
$updateOnly = $input->getOption('update-only');
- if (sizeof($configNames) > 1) {
+ if (count($configNames) > 1) {
$existingValue = $this->systemConfig->getValue($configName);
$newValue = $this->mergeArrayValue(