From fab3734ea57bfe7087347347c89f9433ae620537 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 1 Mar 2023 21:50:31 +0100 Subject: [PATCH] Update categorize class --- Blacklight/Categorize.php | 8 +++----- rector.php | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Blacklight/Categorize.php b/Blacklight/Categorize.php index b10c3d98f..c49f734a9 100755 --- a/Blacklight/Categorize.php +++ b/Blacklight/Categorize.php @@ -104,18 +104,16 @@ class Categorize switch(true) { case preg_match('/alt\.binaries\.erotica([.]\w+)?/i', $groupName): if ($this->isXxx()) { - break; + return true; } $this->tmpCat = Category::XXX_OTHER; - break; + return true; case preg_match('/alt\.binaries\.podcast$/i', $groupName): $this->tmpCat = Category::MUSIC_PODCAST; - break; + return true; default: return false; } - - return true; } // diff --git a/rector.php b/rector.php index 33001ed43..4b7736548 100644 --- a/rector.php +++ b/rector.php @@ -26,6 +26,7 @@ return static function (RectorConfig $rectorConfig): void { // define sets of rules $rectorConfig->sets([ - LaravelSetList::LARAVEL_100 + LaravelSetList::LARAVEL_100, + \Rector\Set\ValueObject\SetList::PHP_82 ]); };