mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update categorize class
This commit is contained in:
@@ -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
@@ -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
|
||||
]);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user