From 26630a4e3bd0a235949efda863e2141ffefeb87c Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 5 Jan 2024 15:32:07 +0000 Subject: [PATCH] fmt --- core/testcase.php | 4 +++- ext/bulk_add/theme.php | 2 +- ext/graphql/main.php | 2 +- ext/s3/main.php | 5 ++--- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/core/testcase.php b/core/testcase.php index 68893d15..b2e730d2 100644 --- a/core/testcase.php +++ b/core/testcase.php @@ -224,7 +224,9 @@ if(class_exists("\\PHPUnit\\Framework\\TestCase")) { "tags" => Tag::explode($tags), "source" => null, ])); - if(count($dae->images) == 0) throw new \Exception("Upload failed :("); + if(count($dae->images) == 0) { + throw new \Exception("Upload failed :("); + } return $dae->images[0]->id; } diff --git a/ext/bulk_add/theme.php b/ext/bulk_add/theme.php index 3adcc50a..63b30410 100644 --- a/ext/bulk_add/theme.php +++ b/ext/bulk_add/theme.php @@ -10,7 +10,7 @@ class BulkAddTheme extends Themelet { /** * Show a standard page for results to be put into - * + * * @param UploadResult[] $results */ public function display_upload_results(Page $page, array $results) diff --git a/ext/graphql/main.php b/ext/graphql/main.php index 46b302d0..2a039bf8 100644 --- a/ext/graphql/main.php +++ b/ext/graphql/main.php @@ -170,7 +170,7 @@ class GraphQL extends Extension 'source' => $source, ])); - return ["image_ids" => array_map(fn($im) => $im->id, $event->images)]; + return ["image_ids" => array_map(fn ($im) => $im->id, $event->images)]; } public function onCommand(CommandEvent $event) diff --git a/ext/s3/main.php b/ext/s3/main.php index 1a546110..9c85a317 100644 --- a/ext/s3/main.php +++ b/ext/s3/main.php @@ -120,12 +120,11 @@ class S3 extends Extension if(is_null($new_tags)) { $friendly = $image->parse_link_template('$id - $tags.$ext'); - } - else { + } else { $_orig_tags = $image->get_tag_array(); $image->tag_array = $new_tags; $friendly = $image->parse_link_template('$id - $tags.$ext'); - $image->tag_array = $_orig_tags; + $image->tag_array = $_orig_tags; } $client->putObject([