This commit is contained in:
DariusIII
2025-04-30 11:15:37 +02:00
parent 5ab3a7aec3
commit 7bce898bf7
+8 -9
View File
@@ -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;