@@ -38,7 +38,7 @@ |
||
38 | 38 | * @param string $text Text to match against. |
39 | 39 | * @param string $page Type of page. browse or search. |
40 | 40 | * |
41 | - *@return bool|string |
|
41 | + *@return string|false |
|
42 | 42 | */ |
43 | 43 | function release_flag($text, $page) |
44 | 44 | { |
@@ -297,6 +297,9 @@ discard block |
||
297 | 297 | } |
298 | 298 | } |
299 | 299 | |
300 | + /** |
|
301 | + * @param integer $property |
|
302 | + */ |
|
300 | 303 | protected function isChanged($property) |
301 | 304 | { |
302 | 305 | return ($this->changes & $property) === $property; |
@@ -336,6 +339,10 @@ discard block |
||
336 | 339 | } |
337 | 340 | } |
338 | 341 | |
342 | + /** |
|
343 | + * @param string $methodOld |
|
344 | + * @param string $methodUse |
|
345 | + */ |
|
339 | 346 | private function deprecated($methodOld, $methodUse) |
340 | 347 | { |
341 | 348 | trigger_error("This method ($methodOld) is deprecated. Please use '$methodUse' instead.", |
@@ -20,8 +20,8 @@ |
||
20 | 20 | namespace App\Extensions\util; |
21 | 21 | |
22 | 22 | use App\Models\Settings; |
23 | -use nntmux\utility\Utility; |
|
24 | 23 | use Illuminate\Database\Eloquent\Collection; |
24 | +use nntmux\utility\Utility; |
|
25 | 25 | |
26 | 26 | class Versions extends Collection |
27 | 27 | { |
@@ -1602,7 +1602,7 @@ |
||
1602 | 1602 | * Return all blacklists. |
1603 | 1603 | * |
1604 | 1604 | * @param bool $activeOnly Only display active blacklists ? |
1605 | - * @param int|string $opType Optional, get white or black lists (use Binaries constants). |
|
1605 | + * @param integer $opType Optional, get white or black lists (use Binaries constants). |
|
1606 | 1606 | * @param string $groupName Optional, group. |
1607 | 1607 | * @param bool $groupRegex Optional Join groups / binaryblacklist using regexp for equals. |
1608 | 1608 | * |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace nntmux; |
4 | 4 | |
5 | -use nntmux\db\DB; |
|
5 | +use App\Models\BinaryBlacklist; |
|
6 | 6 | use App\Models\Group; |
7 | +use App\Models\MultigroupPoster; |
|
7 | 8 | use App\Models\Settings; |
8 | 9 | use Illuminate\Support\Carbon; |
9 | -use App\Models\BinaryBlacklist; |
|
10 | -use App\Models\MultigroupPoster; |
|
11 | 10 | use Illuminate\Support\Facades\Cache; |
11 | +use nntmux\db\DB; |
|
12 | 12 | use nntmux\processing\ProcessReleasesMultiGroup; |
13 | 13 | |
14 | 14 | /** |
@@ -860,7 +860,7 @@ |
||
860 | 860 | /** |
861 | 861 | * See if genre name exists. |
862 | 862 | * |
863 | - * @param $gameGenre |
|
863 | + * @param string $gameGenre |
|
864 | 864 | * |
865 | 865 | * @return bool|string |
866 | 866 | */ |
@@ -2,15 +2,15 @@ |
||
2 | 2 | |
3 | 3 | namespace nntmux; |
4 | 4 | |
5 | -use nntmux\db\DB; |
|
6 | -use App\Models\Genre; |
|
7 | 5 | use App\Models\Category; |
8 | -use App\Models\Settings; |
|
9 | 6 | use App\Models\GamesInfo; |
10 | -use Illuminate\Support\Carbon; |
|
7 | +use App\Models\Genre; |
|
8 | +use App\Models\Settings; |
|
11 | 9 | use DBorsatto\GiantBomb\Client; |
12 | 10 | use DBorsatto\GiantBomb\Config; |
11 | +use Illuminate\Support\Carbon; |
|
13 | 12 | use Illuminate\Support\Facades\Cache; |
13 | +use nntmux\db\DB; |
|
14 | 14 | |
15 | 15 | class Games |
16 | 16 | { |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
119 | - * @return bool|string |
|
119 | + * @return string|false |
|
120 | 120 | */ |
121 | 121 | public function returnXML() |
122 | 122 | { |
@@ -672,7 +672,7 @@ discard block |
||
672 | 672 | /** |
673 | 673 | * Accepts an array of values to loop through to build cData from the release info. |
674 | 674 | * |
675 | - * @param array $columns The columns in the release we need to insert |
|
675 | + * @param string[] $columns The columns in the release we need to insert |
|
676 | 676 | * |
677 | 677 | * @return string The HTML format cData |
678 | 678 | */ |
@@ -299,7 +299,7 @@ discard block |
||
299 | 299 | * @param string $nickName The nick name - visible in the channel. |
300 | 300 | * @param string $userName The user name - visible in the host name. |
301 | 301 | * @param string $realName The real name - visible in the WhoIs. |
302 | - * @param null $password The password - some servers require a password. |
|
302 | + * @param string|false $password The password - some servers require a password. |
|
303 | 303 | * |
304 | 304 | * @return bool |
305 | 305 | */ |
@@ -586,6 +586,7 @@ discard block |
||
586 | 586 | * Write a single character to the socket. |
587 | 587 | * |
588 | 588 | * @param string (char) $character A single character. |
589 | + * @param string $character |
|
589 | 590 | * |
590 | 591 | * @return int|bool Number of bytes written or false. |
591 | 592 | */ |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * The constructor setting the config variables. |
21 | 21 | * |
22 | - * @param $apiKey |
|
22 | + * @param string|null $apiKey |
|
23 | 23 | */ |
24 | 24 | public function __construct($apiKey) |
25 | 25 | { |
@@ -415,7 +415,7 @@ |
||
415 | 415 | /** |
416 | 416 | * @param string $nfo |
417 | 417 | * |
418 | - * @return bool|mixed |
|
418 | + * @return string|false |
|
419 | 419 | */ |
420 | 420 | private function _getVideoQuality($nfo = '') |
421 | 421 | { |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace nntmux; |
4 | 4 | |
5 | -use nntmux\db\DB; |
|
6 | 5 | use ApaiIO\ApaiIO; |
7 | -use App\Models\Settings; |
|
8 | -use ApaiIO\Operations\Lookup; |
|
9 | 6 | use ApaiIO\Configuration\GenericConfiguration; |
7 | +use ApaiIO\Operations\Lookup; |
|
10 | 8 | use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject; |
9 | +use App\Models\Settings; |
|
10 | +use nntmux\db\DB; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class MiscSorter. |
@@ -274,7 +274,7 @@ |
||
274 | 274 | /** |
275 | 275 | * Attempt to find NFO files inside the NZB's of releases. |
276 | 276 | * |
277 | - * @param $nntp |
|
277 | + * @param NNTP $nntp |
|
278 | 278 | * @param string $groupID (optional) Group ID. |
279 | 279 | * @param string $guidChar (optional) First character of the release GUID (used for multi-processing). |
280 | 280 | * @param int $processImdb (optional) Attempt to find IMDB id's in the NZB? |
@@ -4,12 +4,12 @@ |
||
4 | 4 | |
5 | 5 | use App\Models\Group; |
6 | 6 | use App\Models\Release; |
7 | -use App\Models\Settings; |
|
8 | 7 | use App\Models\ReleaseNfo; |
9 | -use nntmux\utility\Utility; |
|
10 | -use dariusiii\rarinfo\SfvInfo; |
|
8 | +use App\Models\Settings; |
|
11 | 9 | use dariusiii\rarinfo\Par2Info; |
10 | +use dariusiii\rarinfo\SfvInfo; |
|
12 | 11 | use nntmux\processing\PostProcess; |
12 | +use nntmux\utility\Utility; |
|
13 | 13 | |
14 | 14 | /** |
15 | 15 | * Class Nfo |