diff --git a/Blacklight/Categorize.php b/Blacklight/Categorize.php index fa03943d4..324daef3b 100755 --- a/Blacklight/Categorize.php +++ b/Blacklight/Categorize.php @@ -5,7 +5,6 @@ namespace Blacklight; use App\Models\Category; use App\Models\Settings; use App\Models\UsenetGroup; -use Elastic\Elasticsearch\Endpoints\Cat; /** * Categorizing of releases by name/group. @@ -1331,8 +1330,10 @@ class Categorize if (preg_match('/podcast/i', $this->releaseName)) { $this->tmpCat = Category::MUSIC_PODCAST; $this->tmpTag[] = Category::TAG_MUSIC_PODCAST; + return true; } + return false; } diff --git a/app/Models/Category.php b/app/Models/Category.php index fb5b5cac8..ac8b28be2 100644 --- a/app/Models/Category.php +++ b/app/Models/Category.php @@ -553,7 +553,7 @@ class Category extends Model /** * Return a list of categories for use in a dropdown. * - * @param bool $blnIncludeNoneSelected + * @param bool $blnIncludeNoneSelected * @return array */ public static function getForSelect(bool $blnIncludeNoneSelected = true): array @@ -572,8 +572,8 @@ class Category extends Model } /** - * @param bool $activeOnly - * @param array $excludedCats + * @param bool $activeOnly + * @param array $excludedCats * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection */ public static function getCategories(bool $activeOnly = false, array $excludedCats = []): \Illuminate\Database\Eloquent\Collection|array