diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-02-13 21:48:24 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2018-02-13 21:48:24 +0100 |
commit | 954da26e26a6f0011efa1432e9de4264e5f5e033 (patch) | |
tree | 4ec1aecaaf672bd8fc362f59261abbf1a1ea7bcf /core/Command | |
parent | 3fc6d6234e39914d8e6e7d4b9ffe0b5420d3aa2d (diff) | |
download | nextcloud-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')
-rw-r--r-- | core/Command/Config/System/DeleteConfig.php | 2 | ||||
-rw-r--r-- | core/Command/Config/System/SetConfig.php | 2 | ||||
-rw-r--r-- | core/Command/L10n/CreateJs.php | 4 |
3 files changed, 4 insertions, 4 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( diff --git a/core/Command/L10n/CreateJs.php b/core/Command/L10n/CreateJs.php index 9c14490b97f..d060f166b85 100644 --- a/core/Command/L10n/CreateJs.php +++ b/core/Command/L10n/CreateJs.php @@ -105,11 +105,11 @@ class CreateJs extends Command implements CompletionAwareInterface { $jsTrans = array(); foreach ($translations as $id => $val) { if (is_array($val)) { - $val = '[ ' . join(',', $val) . ']'; + $val = '[ ' . implode(',', $val) . ']'; } $jsTrans[] = "\"$id\" : \"$val\""; } - $content .= join(",\n ", $jsTrans); + $content .= implode(",\n ", $jsTrans); $content .= "\n},\n\"$plurals\");\n"; file_put_contents($jsFile, $content); |