From 15745d42b779ad14efde2932ab116f45eee39246 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:11:04 +0100 Subject: Upgrade code to php 8.1 (#6748) * revert Fix code indentation Fix code Upgrade code to php 8.1 * fix remarques * code review * code review * code review * Apply suggestions from code review * code review * Fixes * Many remainging updates of array syntax * Lost case 'reading-list' * Uneeded PHPDoc --------- Co-authored-by: Luc Sanchez Co-authored-by: Alexandre Alapetite --- lib/lib_install.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/lib_install.php') diff --git a/lib/lib_install.php b/lib/lib_install.php index d8ccd7624..e78de565b 100644 --- a/lib/lib_install.php +++ b/lib/lib_install.php @@ -47,7 +47,7 @@ function checkRequirements(string $dbType = ''): array { $users = is_dir(USERS_PATH) && touch(USERS_PATH . '/index.html'); $favicons = is_dir(DATA_PATH) && touch(DATA_PATH . '/favicons/index.html'); - return array( + return [ 'php' => $php ? 'ok' : 'ko', 'curl' => $curl ? 'ok' : 'ko', 'pdo-mysql' => $pdo_mysql ? 'ok' : 'ko', @@ -68,8 +68,8 @@ function checkRequirements(string $dbType = ''): array { 'favicons' => $favicons ? 'ok' : 'ko', 'message' => $message ?: '', 'all' => $php && $curl && $pdo && $pcre && $ctype && $dom && $xml && - $data && $cache && $tmp && $users && $favicons && $message == '' ? 'ok' : 'ko' - ); + $data && $cache && $tmp && $users && $favicons && $message == '' ? 'ok' : 'ko', + ]; } function generateSalt(): string { -- cgit v1.2.3