diff --git a/core/polyfills.php b/core/polyfills.php index 8f6f62ff..7a744eb3 100644 --- a/core/polyfills.php +++ b/core/polyfills.php @@ -127,7 +127,7 @@ function list_files(string $base, string $_sub_dir=""): array $files = []; $dir = opendir("$base/$_sub_dir"); - if($dir===false) { + if ($dir===false) { throw new SCoreException("Unable to open directory $base/$_sub_dir"); } try { diff --git a/ext/handle_archive/main.php b/ext/handle_archive/main.php index a4819c72..c1e1effb 100644 --- a/ext/handle_archive/main.php +++ b/ext/handle_archive/main.php @@ -29,7 +29,7 @@ class ArchiveFileHandler extends DataHandlerExtension $cmd = str_replace('%f', $event->tmpname, $cmd); $cmd = str_replace('%d', $tmpdir, $cmd); exec($cmd); - if(file_exists($tmpdir)) { + if (file_exists($tmpdir)) { try { $results = add_dir($tmpdir); if (count($results) > 0) {