summaryrefslogtreecommitdiffstats
path: root/core/Controller/SetupController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/SetupController.php')
-rw-r--r--core/Controller/SetupController.php8
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);
}