Update categorize class

This commit is contained in:
DariusIII
2023-03-01 21:50:31 +01:00
parent c360dc1e09
commit fab3734ea5
2 changed files with 5 additions and 6 deletions
+3 -5
View File
@@ -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;
}
//
+2 -1
View File
@@ -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
]);
};