From b893da927fd72f0af8c3a93e2369763685a3bd7c Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 24 Jun 2020 17:02:24 +0100 Subject: [PATCH] format --- core/polyfills.php | 2 +- ext/handle_archive/main.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {