diff --git a/application/helper/ApplicationUtils.php b/application/helper/ApplicationUtils.php index f78da4da7..92c8a355f 100644 --- a/application/helper/ApplicationUtils.php +++ b/application/helper/ApplicationUtils.php @@ -179,7 +179,13 @@ public static function checkResourcePermissions(ConfigManager $conf, bool $minim $rainTplDir = rtrim($conf->get('resource.raintpl_tpl'), '/'); // Check script and template directories are readable - foreach (['application', 'inc', 'plugins', $rainTplDir, $rainTplDir . '/' . $conf->get('resource.theme'),] as $path) { + foreach ([ + 'application', + 'inc', + 'plugins', + $rainTplDir, + $rainTplDir . '/' . $conf->get('resource.theme'), + ] as $path) { if (!is_readable(realpath($path))) { $errors[] = '"' . $path . '" ' . t('directory is not readable'); } @@ -213,7 +219,13 @@ public static function checkResourcePermissions(ConfigManager $conf, bool $minim } // Check configuration files are readable and writable - foreach ([$conf->getConfigFileExt(), $conf->get('resource.datastore'), $conf->get('resource.ban_file'), $conf->get('resource.log'), $conf->get('resource.update_check'),] as $path) { + foreach ([ + $conf->getConfigFileExt(), + $conf->get('resource.datastore'), + $conf->get('resource.ban_file'), + $conf->get('resource.log'), + $conf->get('resource.update_check'), + ] as $path) { if (!is_string($path) || !is_file(realpath($path))) { # the file may not exist yet continue;