Add missing @throws to PHPDOC blocks in ReleaseRemover class

This commit is contained in:
DariusIII
2018-12-27 23:06:05 +01:00
parent 8ac28390f9
commit 80119cd72b
+22 -4
View File
@@ -144,6 +144,7 @@ class ReleaseRemover
* content is what to change the column content to
*
* @return string|bool
* @throws \Exception
*/
public function removeByCriteria($arguments)
{
@@ -201,13 +202,14 @@ class ReleaseRemover
/**
* Delete crap releases.
*
* @param bool $delete Delete the release or just show the result?
* @param int|string $time Time in hours (to select old releases) or 'full' for no time limit.
* @param string $type Type of query to run [blacklist, executable, gibberish, hashed, installbin, passworded,
* @param bool $delete Delete the release or just show the result?
* @param int|string $time Time in hours (to select old releases) or 'full' for no time limit.
* @param string $type Type of query to run [blacklist, executable, gibberish, hashed, installbin, passworded,
* passwordurl, sample, scr, short, size, ''] ('' runs against all types)
* @param string|int $blacklistID
* @param string|int $blacklistID
*
* @return string|bool
* @throws \Exception
*/
public function removeCrap($delete, $time, $type = '', $blacklistID = '')
{
@@ -331,6 +333,7 @@ class ReleaseRemover
* Remove releases with 15 or more letters or numbers, nothing else.
*
* @return bool|string
* @throws \Exception
*/
protected function removeGibberish()
{
@@ -359,6 +362,7 @@ class ReleaseRemover
* Remove releases with 25 or more letters/numbers, probably hashed.
*
* @return bool|string
* @throws \Exception
*/
protected function removeHashed()
{
@@ -388,6 +392,7 @@ class ReleaseRemover
* Remove releases with 5 or less letters/numbers.
*
* @return bool|string
* @throws \Exception
*/
protected function removeShort()
{
@@ -416,6 +421,7 @@ class ReleaseRemover
* Remove releases with an exe file not in other misc or pc apps/games.
*
* @return bool|string
* @throws \Exception
*/
protected function removeExecutable()
{
@@ -446,6 +452,7 @@ class ReleaseRemover
* Remove releases with an install.bin file.
*
* @return bool|string
* @throws \Exception
*/
protected function removeInstallBin()
{
@@ -471,6 +478,7 @@ class ReleaseRemover
* Remove releases with an password.url file.
*
* @return bool|string
* @throws \Exception
*/
protected function removePasswordURL()
{
@@ -496,6 +504,7 @@ class ReleaseRemover
* Remove releases with password in the search name.
*
* @return bool|string
* @throws \Exception
*/
protected function removePassworded()
{
@@ -544,6 +553,7 @@ class ReleaseRemover
* Remove releases smaller than 2MB with 1 part not in MP3/books/misc section.
*
* @return bool|string
* @throws \Exception
*/
protected function removeSize()
{
@@ -579,6 +589,7 @@ class ReleaseRemover
* Remove releases bigger than 200MB with just a single file.
*
* @return bool|string
* @throws \Exception
*/
protected function removeHuge()
{
@@ -602,6 +613,7 @@ class ReleaseRemover
* Remove releases that are just a single nzb file.
*
* @return bool|string
* @throws \Exception
*/
protected function removeSingleNZB()
{
@@ -627,6 +639,7 @@ class ReleaseRemover
* Remove releases with more than 1 part, less than 40MB, sample in name. TV/Movie sections.
*
* @return bool|string
* @throws \Exception
*/
protected function removeSample()
{
@@ -669,6 +682,7 @@ class ReleaseRemover
* Remove releases with a scr file in the filename/subject.
*
* @return bool|string
* @throws \Exception
*/
protected function removeSCR()
{
@@ -694,6 +708,7 @@ class ReleaseRemover
* Remove releases using the site blacklist regexes.
*
* @return bool
* @throws \Exception
*/
protected function removeBlacklist(): bool
{
@@ -826,6 +841,7 @@ class ReleaseRemover
* Remove releases using the site blacklist regexes against file names.
*
* @return bool
* @throws \Exception
*/
protected function removeBlacklistFiles(): bool
{
@@ -920,6 +936,7 @@ class ReleaseRemover
* Thanks to dizant from nZEDb forums for the sql query.
*
* @return string|bool
* @throws \Exception
*/
protected function removeWMV()
{
@@ -944,6 +961,7 @@ class ReleaseRemover
* Thanks to dizant from nZEDb forums for parts of the sql query.
*
* @return string|bool
* @throws \Exception
*/
protected function removeCodecPoster()
{