refactor: apply new code style
This commit is contained in:
parent
8c0b0b05c2
commit
523a5b18f9
1 changed files with 18 additions and 18 deletions
|
@ -94,58 +94,58 @@ switch ($step) {
|
||||||
* Check prerequisites
|
* Check prerequisites
|
||||||
*/
|
*/
|
||||||
case 2:
|
case 2:
|
||||||
$prerequisites = array(
|
$prerequisites = [
|
||||||
array(
|
[
|
||||||
'filename' => __('PHP Version >= 8.1'),
|
'filename' => __('PHP Version >= 8.1'),
|
||||||
'icon' => 'php',
|
'icon' => 'php',
|
||||||
'condition' => \version_compare(\PHP_VERSION, '8.1', '>='),
|
'condition' => \version_compare(\PHP_VERSION, '8.1', '>='),
|
||||||
'label' => __('Compatible'),
|
'label' => __('Compatible'),
|
||||||
),
|
],
|
||||||
array(
|
[
|
||||||
'filename' => __('PHP Version < 8.3'),
|
'filename' => __('PHP Version < 8.3'),
|
||||||
'icon' => 'php',
|
'icon' => 'php',
|
||||||
'condition' => \version_compare(\PHP_VERSION, '8.3', '<'),
|
'condition' => \version_compare(\PHP_VERSION, '8.3', '<'),
|
||||||
'label' => __('Compatible'),
|
'label' => __('Compatible'),
|
||||||
),
|
],
|
||||||
array(
|
[
|
||||||
'filename' => 'PHP Extension: Intl',
|
'filename' => 'PHP Extension: Intl',
|
||||||
'icon' => 'php',
|
'icon' => 'php',
|
||||||
'condition' => \extension_loaded('intl'),
|
'condition' => \extension_loaded('intl'),
|
||||||
'label' => __('Activated'),
|
'label' => __('Activated'),
|
||||||
),
|
],
|
||||||
|
|
||||||
array(
|
[
|
||||||
'filename' => '/src/cache',
|
'filename' => '/src/cache',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \file_exists(ROOT . '/src/cache') && \is_dir(ROOT . '/src/cache'),
|
'condition' => \file_exists(ROOT . '/src/cache') && \is_dir(ROOT . '/src/cache'),
|
||||||
'label' => __('Exists'),
|
'label' => __('Exists'),
|
||||||
),
|
],
|
||||||
array(
|
[
|
||||||
'filename' => '/src/cache',
|
'filename' => '/src/cache',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \is_writeable(ROOT . '/src/cache'),
|
'condition' => \is_writeable(ROOT . '/src/cache'),
|
||||||
'label' => __('Writeable'),
|
'label' => __('Writeable'),
|
||||||
),
|
],
|
||||||
|
|
||||||
array(
|
[
|
||||||
'filename' => '/src/config',
|
'filename' => '/src/config',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \file_exists(ROOT . '/src/config') && \is_dir(ROOT . '/src/config'),
|
'condition' => \file_exists(ROOT . '/src/config') && \is_dir(ROOT . '/src/config'),
|
||||||
'label' => __('Exists'),
|
'label' => __('Exists'),
|
||||||
),
|
],
|
||||||
array(
|
[
|
||||||
'filename' => '/src/config',
|
'filename' => '/src/config',
|
||||||
'icon' => 'folder',
|
'icon' => 'folder',
|
||||||
'condition' => \is_writeable(ROOT . '/src/config'),
|
'condition' => \is_writeable(ROOT . '/src/config'),
|
||||||
'label' => __('Writeable'),
|
'label' => __('Writeable'),
|
||||||
),
|
],
|
||||||
array(
|
[
|
||||||
'filename' => '/src/config/config.php',
|
'filename' => '/src/config/config.php',
|
||||||
'icon' => 'file',
|
'icon' => 'file',
|
||||||
'condition' => !\file_exists('/src/config/config.php'),
|
'condition' => !\file_exists('/src/config/config.php'),
|
||||||
'label' => __('Doesn\'t exist (yet)'),
|
'label' => __('Doesn\'t exist (yet)'),
|
||||||
),
|
],
|
||||||
);
|
];
|
||||||
|
|
||||||
foreach ($_POST as $key => $value) {
|
foreach ($_POST as $key => $value) {
|
||||||
if ('DATABASE' === substr($key, 0, 8)) {
|
if ('DATABASE' === substr($key, 0, 8)) {
|
||||||
|
|
Loading…
Reference in a new issue