From d97f492aafe9a5b3739aafe913962ac315ef8374 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 25 Feb 2020 12:18:47 +0000 Subject: [PATCH] format --- ext/handle_archive/main.php | 20 ++++++++++++++++---- ext/upload/theme.php | 3 ++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/ext/handle_archive/main.php b/ext/handle_archive/main.php index a8248960..04937c90 100644 --- a/ext/handle_archive/main.php +++ b/ext/handle_archive/main.php @@ -38,10 +38,22 @@ class ArchiveFileHandler extends DataHandlerExtension } } - public function onDisplayingImage(DisplayingImageEvent $event) {} + public function onDisplayingImage(DisplayingImageEvent $event) + { + } // we don't actually do anything, just accept one upload and spawn several - protected function media_check_properties(MediaCheckPropertiesEvent $event): void {} - protected function check_contents(string $tmpname): bool {return false;} - protected function create_thumb(string $hash, string $type): bool {return false;} + protected function media_check_properties(MediaCheckPropertiesEvent $event): void + { + } + + protected function check_contents(string $tmpname): bool + { + return false; + } + + protected function create_thumb(string $hash, string $type): bool + { + return false; + } } diff --git a/ext/upload/theme.php b/ext/upload/theme.php index 06b6503a..7a1eb7a9 100644 --- a/ext/upload/theme.php +++ b/ext/upload/theme.php @@ -252,7 +252,8 @@ class UploadTheme extends Themelet "; } - protected function get_accept() { + protected function get_accept() + { return join(",", DataHandlerExtension::get_all_supported_exts()); } }