diff --git a/newznab/controllers/NameFixer.php b/newznab/controllers/NameFixer.php index 70740d938..675fe4dce 100644 --- a/newznab/controllers/NameFixer.php +++ b/newznab/controllers/NameFixer.php @@ -152,7 +152,7 @@ class NameFixer $this->category = ($options['Categorize'] instanceof Categorize ? $options['Categorize'] : new Categorize(['Settings' => $this->pdo])); $this->utility = ($options['Utility'] instanceof Utility ? $options['Utility'] : new Utility()); $this->_groups = ($options['Groups'] instanceof Groups ? $options['Groups'] : new Groups(['Settings' => $this->pdo])); - $this->sphinx = ($options['SphinxSearch'] instanceof \SphinxSearch ? $options['SphinxSearch'] : new \SphinxSearch()); + $this->sphinx = ($options['SphinxSearch'] instanceof SphinxSearch ? $options['SphinxSearch'] : new SphinxSearch()); } /** @@ -373,7 +373,7 @@ class NameFixer * @param int $cats 1: other categories, 2: all categories * @param string $query Query to execute. * - * @return PDOStatement|bool False on failure, PDOStatement with query results on success. + * @return \PDOStatement|bool False on failure, PDOStatement with query results on success. */ protected function _getReleases($time, $cats, $query) { diff --git a/newznab/controllers/ReleaseCleaning.php b/newznab/controllers/ReleaseCleaning.php index 922b49773..329bf452a 100644 --- a/newznab/controllers/ReleaseCleaning.php +++ b/newznab/controllers/ReleaseCleaning.php @@ -77,7 +77,7 @@ class ReleaseCleaning protected $_regexes; /** - * @param DB $settings + * @param Settings $settings */ public function __construct($settings = null) { @@ -86,7 +86,7 @@ class ReleaseCleaning $this->e1 = \CollectionsCleaning::REGEX_FILE_EXTENSIONS . \CollectionsCleaning::REGEX_END; $this->e2 = \CollectionsCleaning::REGEX_FILE_EXTENSIONS . \CollectionsCleaning::REGEX_SUBJECT_SIZE . \CollectionsCleaning::REGEX_END; - $this->pdo = ($settings instanceof newznab\db\Settings ? $settings : new newznab\db\Settings()); + $this->pdo = ($settings instanceof Settings ? $settings : new Settings()); $this->_regexes = new Regexes(['Settings' => $this->pdo, 'Table_Name' => 'release_naming_regexes']); }