diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-03-26 16:35:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-26 16:35:30 +0100 |
commit | 0c3e2fac54602926cfa1a0965650481dcaf86743 (patch) | |
tree | ec20e0ffa2f86b9b54939a83a785407319f94559 /core/Controller/SetupController.php | |
parent | 62403d0932be7d620c7bdadc6b4e13eb496fcd6f (diff) | |
parent | b80ebc96748b45fd2e0ba9323308657c4b00b7ec (diff) | |
download | nextcloud-server-0c3e2fac54602926cfa1a0965650481dcaf86743.tar.gz nextcloud-server-0c3e2fac54602926cfa1a0965650481dcaf86743.zip |
Merge pull request #20168 from nextcloud/techdebt/short-array-syntax
Use the short array syntax, everywhere
Diffstat (limited to 'core/Controller/SetupController.php')
-rw-r--r-- | core/Controller/SetupController.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/Controller/SetupController.php b/core/Controller/SetupController.php index 302edccf7a6..0135e01f148 100644 --- a/core/Controller/SetupController.php +++ b/core/Controller/SetupController.php @@ -74,7 +74,7 @@ class SetupController { if(isset($post['install']) AND $post['install']=='true') { // We have to launch the installation process : $e = $this->setupHelper->install($post); - $errors = array('errors' => $e); + $errors = ['errors' => $e]; if(count($e) > 0) { $options = array_merge($opts, $post, $errors); @@ -93,7 +93,7 @@ class SetupController { } public function display($post) { - $defaults = array( + $defaults = [ 'adminlogin' => '', 'adminpass' => '', 'dbuser' => '', @@ -102,7 +102,7 @@ class SetupController { 'dbtablespace' => '', 'dbhost' => 'localhost', 'dbtype' => '', - ); + ]; $parameters = array_merge($defaults, $post); \OC_Util::addScript('setup'); @@ -133,7 +133,7 @@ class SetupController { public function loadAutoConfig($post) { if( file_exists($this->autoConfigFile)) { \OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO); - $AUTOCONFIG = array(); + $AUTOCONFIG = []; include $this->autoConfigFile; $post = array_merge ($post, $AUTOCONFIG); } |