From b80ebc96748b45fd2e0ba9323308657c4b00b7ec Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Thu, 26 Mar 2020 09:30:18 +0100 Subject: Use the short array syntax, everywhere Signed-off-by: Christoph Wurst --- core/Controller/SetupController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/Controller/SetupController.php') 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); } -- cgit v1.2.3