Skip to content

Commit

Permalink
Revert auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHoaro committed Apr 8, 2023
1 parent 625b7e2 commit 379ab59
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions application/helper/ApplicationUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 379ab59

Please sign in to comment.