mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
CS fixes
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user