From f8f163d054110f7e0ff6650fca146b474335f4bd Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Fri, 7 Jul 2023 22:36:27 +0200 Subject: Chore/processing of depreciations and updating code to php72 minimum (#5504) * processing of depreciations and updating of code to php7.2 minimum * Autoformat many strange array indenting And revert a few unwanted changes --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/install.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'app/install.php') diff --git a/app/install.php b/app/install.php index 4023e249e..873689054 100644 --- a/app/install.php +++ b/app/install.php @@ -268,11 +268,11 @@ function checkStep0(): array { $language = Minz_Session::param('language') != '' && in_array(Minz_Session::param('language'), $languages, true); $sessionWorking = Minz_Session::param('sessionWorking') === 'ok'; - return array( + return [ 'language' => $language ? 'ok' : 'ko', 'sessionWorking' => $sessionWorking ? 'ok' : 'ko', - 'all' => $language && $sessionWorking ? 'ok' : 'ko' - ); + 'all' => $language && $sessionWorking ? 'ok' : 'ko', + ]; } function freshrss_already_installed(): bool { @@ -376,7 +376,7 @@ function printStep0(): void { - +
@@ -544,7 +544,7 @@ function printStep2(): void {
+ $_SESSION['bd_host'] ?? $system_default_config->db['host'] ?? '' ?>" tabindex="2" />
@@ -552,7 +552,7 @@ function printStep2(): void {
+ $_SESSION['bd_user'] ?? '' ?>" tabindex="3" />
@@ -561,7 +561,7 @@ function printStep2(): void {
+ $_SESSION['bd_password'] ?? '' ?>" tabindex="4" autocomplete="off" />
@@ -571,7 +571,7 @@ function printStep2(): void {
+ $_SESSION['bd_base'] ?? '' ?>" tabindex="6" />
@@ -579,7 +579,7 @@ function printStep2(): void {
+ $_SESSION['bd_prefix'] ?? $system_default_config->db['prefix'] ?? '' ?>" tabindex="7" />
@@ -603,7 +603,7 @@ function no_auth(string $auth_type): bool { /* Create default user */ function printStep3(): void { - $auth_type = isset($_SESSION['auth_type']) ? $_SESSION['auth_type'] : ''; + $auth_type = $_SESSION['auth_type'] ?? ''; $s3 = checkStep3(); if ($s3['all'] == 'ok') { ?>

@@ -618,7 +618,7 @@ function printStep3(): void {

-- cgit v1.2.3