From 46c1c1c3c36cf82a9e748d61bca3439d0d14e7b9 Mon Sep 17 00:00:00 2001 From: "o.pinke" Date: Tue, 4 Jul 2023 17:09:34 +0200 Subject: [PATCH] fix typo and typehint --- setup/index.php | 4 +-- setup/lib/functions.phpinfo.php | 49 +++++++++++++++++---------------- 2 files changed, 26 insertions(+), 27 deletions(-) diff --git a/setup/index.php b/setup/index.php index daf8eb8..10a3809 100644 --- a/setup/index.php +++ b/setup/index.php @@ -133,6 +133,4 @@ match ($iStep) { 'doupgrade' => checkAndInclude('steps/upgrade/doupgrade.php'), 'doinstall' => checkAndInclude('steps/setup/doinstall.php'), default => checkAndInclude('steps/languagechooser.php'), -}; - -?> \ No newline at end of file +}; \ No newline at end of file diff --git a/setup/lib/functions.phpinfo.php b/setup/lib/functions.phpinfo.php index abe79b0..d7e5dcc 100644 --- a/setup/lib/functions.phpinfo.php +++ b/setup/lib/functions.phpinfo.php @@ -1,12 +1,12 @@ (int) $val * 1024, - 'm', 'M' => (int) $val * 1_048_576, + 'k', 'K' => (int)$val * 1024, + 'm', 'M' => (int)$val * 1_048_576, default => $val, }; } -function isPHPExtensionLoaded($extension) { +function isPHPExtensionLoaded($extension) +{ $value = extension_loaded($extension); if ($value === true) { @@ -118,7 +119,7 @@ function isPHPExtensionLoaded($extension) { /** * Test for PHP compatibility - * + * * @param string $sVersion phpversion to test * @return boolean */