From 039397bd3104d92f7957263520eab0ccfb54f869 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 23 Jan 2015 11:13:47 +0100 Subject: Use setConfigs() instead of calling setConfig() multiple times --- core/command/db/converttype.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'core/command') diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php index 9d03b705d12..cbce1c37101 100644 --- a/core/command/db/converttype.php +++ b/core/command/db/converttype.php @@ -289,10 +289,12 @@ class ConvertType extends Command { $dbhost .= ':'.$input->getOption('port'); } - $this->config->setSystemValue('dbtype', $type); - $this->config->setSystemValue('dbname', $dbname); - $this->config->setSystemValue('dbhost', $dbhost); - $this->config->setSystemValue('dbuser', $username); - $this->config->setSystemValue('dbpassword', $password); + $this->config->setSystemValues([ + 'dbtype' => $type, + 'dbname' => $dbname, + 'dbhost' => $dbhost, + 'dbuser' => $username, + 'dbpassword' => $password, + ]); } } -- cgit v1.2.3