@@ -71,12 +71,12 @@ discard block |
||
| 71 | 71 | return; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - if(isset($post['install']) AND $post['install']=='true') { |
|
| 74 | + if (isset($post['install']) AND $post['install'] == 'true') { |
|
| 75 | 75 | // We have to launch the installation process : |
| 76 | 76 | $e = $this->setupHelper->install($post); |
| 77 | 77 | $errors = array('errors' => $e); |
| 78 | 78 | |
| 79 | - if(count($e) > 0) { |
|
| 79 | + if (count($e) > 0) { |
|
| 80 | 80 | $options = array_merge($opts, $post, $errors); |
| 81 | 81 | $this->display($options); |
| 82 | 82 | } else { |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | private function finishSetup(bool $installRecommended) { |
| 113 | - if( file_exists( $this->autoConfigFile )) { |
|
| 113 | + if (file_exists($this->autoConfigFile)) { |
|
| 114 | 114 | unlink($this->autoConfigFile); |
| 115 | 115 | } |
| 116 | 116 | \OC::$server->getIntegrityCodeChecker()->runInstanceVerification(); |
@@ -124,18 +124,18 @@ discard block |
||
| 124 | 124 | if ($installRecommended) { |
| 125 | 125 | $urlGenerator = \OC::$server->getURLGenerator(); |
| 126 | 126 | $location = $urlGenerator->getAbsoluteURL('index.php/core/apps/recommended'); |
| 127 | - header('Location: ' . $location); |
|
| 127 | + header('Location: '.$location); |
|
| 128 | 128 | exit(); |
| 129 | 129 | } |
| 130 | 130 | \OC_Util::redirectToDefaultPage(); |
| 131 | 131 | } |
| 132 | 132 | |
| 133 | 133 | public function loadAutoConfig($post) { |
| 134 | - if( file_exists($this->autoConfigFile)) { |
|
| 134 | + if (file_exists($this->autoConfigFile)) { |
|
| 135 | 135 | \OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO); |
| 136 | 136 | $AUTOCONFIG = array(); |
| 137 | 137 | include $this->autoConfigFile; |
| 138 | - $post = array_merge ($post, $AUTOCONFIG); |
|
| 138 | + $post = array_merge($post, $AUTOCONFIG); |
|
| 139 | 139 | } |
| 140 | 140 | |
| 141 | 141 | $dbIsSet = isset($post['dbtype']); |