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.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/core/Controller/SetupController.php b/core/Controller/SetupController.php
index 620b4f12df7..ab8b1973bf2 100644
--- a/core/Controller/SetupController.php
+++ b/core/Controller/SetupController.php
@@ -35,10 +35,8 @@ use OC\Setup;
use OCP\ILogger;
class SetupController {
- /** @var Setup */
- protected $setupHelper;
- /** @var string */
- private $autoConfigFile;
+ protected Setup $setupHelper;
+ private string $autoConfigFile;
/**
* @param Setup $setupHelper
@@ -48,10 +46,7 @@ class SetupController {
$this->setupHelper = $setupHelper;
}
- /**
- * @param $post
- */
- public function run($post) {
+ public function run(array $post): void {
// Check for autosetup:
$post = $this->loadAutoConfig($post);
$opts = $this->setupHelper->getSystemInfo();
@@ -90,7 +85,7 @@ class SetupController {
\OC_Template::printGuestPage('', 'installation_forbidden');
}
- public function display($post) {
+ public function display($post): void {
$defaults = [
'adminlogin' => '',
'adminpass' => '',
@@ -122,7 +117,7 @@ class SetupController {
exit();
}
- public function loadAutoConfig($post) {
+ public function loadAutoConfig(array $post): array {
if (file_exists($this->autoConfigFile)) {
\OCP\Util::writeLog('core', 'Autoconfig file found, setting up Nextcloud…', ILogger::INFO);
$AUTOCONFIG = [];