From 523a5b18f9697e3d48d5e68934485c3b97a23cf8 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Sat, 27 Jan 2024 13:50:58 +0100 Subject: [PATCH] refactor: apply new code style --- src/pages/install.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/install.php b/src/pages/install.php index 32a4e204..1b8184c7 100644 --- a/src/pages/install.php +++ b/src/pages/install.php @@ -94,58 +94,58 @@ switch ($step) { * Check prerequisites */ case 2: - $prerequisites = array( - array( + $prerequisites = [ + [ 'filename' => __('PHP Version >= 8.1'), 'icon' => 'php', 'condition' => \version_compare(\PHP_VERSION, '8.1', '>='), 'label' => __('Compatible'), - ), - array( + ], + [ 'filename' => __('PHP Version < 8.3'), 'icon' => 'php', 'condition' => \version_compare(\PHP_VERSION, '8.3', '<'), 'label' => __('Compatible'), - ), - array( + ], + [ 'filename' => 'PHP Extension: Intl', 'icon' => 'php', 'condition' => \extension_loaded('intl'), 'label' => __('Activated'), - ), + ], - array( + [ 'filename' => '/src/cache', 'icon' => 'folder', 'condition' => \file_exists(ROOT . '/src/cache') && \is_dir(ROOT . '/src/cache'), 'label' => __('Exists'), - ), - array( + ], + [ 'filename' => '/src/cache', 'icon' => 'folder', 'condition' => \is_writeable(ROOT . '/src/cache'), 'label' => __('Writeable'), - ), + ], - array( + [ 'filename' => '/src/config', 'icon' => 'folder', 'condition' => \file_exists(ROOT . '/src/config') && \is_dir(ROOT . '/src/config'), 'label' => __('Exists'), - ), - array( + ], + [ 'filename' => '/src/config', 'icon' => 'folder', 'condition' => \is_writeable(ROOT . '/src/config'), 'label' => __('Writeable'), - ), - array( + ], + [ 'filename' => '/src/config/config.php', 'icon' => 'file', 'condition' => !\file_exists('/src/config/config.php'), 'label' => __('Doesn\'t exist (yet)'), - ), - ); + ], + ]; foreach ($_POST as $key => $value) { if ('DATABASE' === substr($key, 0, 8)) {