From 7bce898bf73cc80f58b6dbe0c36e61d3a1a9b3c5 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 30 Apr 2025 11:15:37 +0200 Subject: [PATCH] CS fixes --- Blacklight/Categorize.php | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/Blacklight/Categorize.php b/Blacklight/Categorize.php index e880194a7..b4dbefc6c 100755 --- a/Blacklight/Categorize.php +++ b/Blacklight/Categorize.php @@ -63,15 +63,14 @@ class Categorize * * @throws \Exception */ - public function determineCategory(int|string $groupId, string $releaseName = '', ?string $poster = '', bool $debug = false): array - { - // Initialize properties - $this->releaseName = $releaseName; - $this->groupId = $groupId; - $this->poster = $poster ?? ''; // Use null coalescing operator to ensure a string is assigned - $this->groupName = UsenetGroup::whereId($this->groupId)->value('name') ?? ''; - $this->tmpCat = Category::OTHER_MISC; - + public function determineCategory(int|string $groupId, string $releaseName = '', ?string $poster = '', bool $debug = false): array + { + // Initialize properties + $this->releaseName = $releaseName; + $this->groupId = $groupId; + $this->poster = $poster ?? ''; // Use null coalescing operator to ensure a string is assigned + $this->groupName = UsenetGroup::whereId($this->groupId)->value('name') ?? ''; + $this->tmpCat = Category::OTHER_MISC; // Store original category for debugging $originalCategory = $this->tmpCat;