Completed
Branch dev (c992ef)
by Darko
06:17
created
nntmux/processing/tv/TV.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
     /**
364 364
      * Sets the TV show's image column to found (1).
365 365
      *
366
-     * @param $videoId
366
+     * @param integer $videoId
367 367
      */
368 368
     public function setCoverFound($videoId): void
369 369
     {
@@ -375,8 +375,8 @@  discard block
 block discarded – undo
375 375
      * Returns the ID value or false if none found.
376 376
      *
377 377
      *
378
-     * @param $column
379
-     * @param $id
378
+     * @param string $column
379
+     * @param integer $id
380 380
      * @return bool|\Illuminate\Database\Eloquent\Model|mixed|null|static
381 381
      */
382 382
     public function getSiteByID($column, $id)
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,15 +2,15 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\processing\tv;
4 4
 
5
-use App\Models\Video;
6
-use App\Models\TvInfo;
7
-use App\Models\Release;
8 5
 use App\Models\Category;
6
+use App\Models\Release;
9 7
 use App\Models\Settings;
10 8
 use App\Models\TvEpisode;
9
+use App\Models\TvInfo;
10
+use App\Models\Video;
11
+use nntmux\processing\Videos;
11 12
 use nntmux\utility\Country;
12 13
 use nntmux\utility\Utility;
13
-use nntmux\processing\Videos;
14 14
 
15 15
 /**
16 16
  * Class TV -- abstract extension of Videos
Please login to merge, or discard this patch.
nntmux/processing/Videos.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
     /**
237 237
      * Supplementary function for getByTitle that queries for a like match.
238 238
      *
239
-     * @param        $title
239
+     * @param        string $title
240 240
      * @param        $type
241 241
      * @param int    $source
242 242
      *
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@
 block discarded – undo
21 21
 
22 22
 namespace nntmux\processing;
23 23
 
24
-use nntmux\db\DB;
25
-use App\Models\Video;
26 24
 use App\Models\TvInfo;
25
+use App\Models\Video;
27 26
 use App\Models\VideoAlias;
28 27
 use Illuminate\Support\Carbon;
29 28
 use Illuminate\Support\Facades\Cache;
29
+use nntmux\db\DB;
30 30
 
31 31
 /**
32 32
  * Parent class for TV/Film and any similar classes to inherit from.
Please login to merge, or discard this patch.
nntmux/ColorCLI.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
     }
187 187
 
188 188
     /**
189
-     * @param $fg
189
+     * @param string $fg
190 190
      * @param string $opt
191 191
      * @param string $bg
192 192
      * @return string
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     }
207 207
 
208 208
     /**
209
-     * @param $str
209
+     * @param string $str
210 210
      * @return string
211 211
      */
212 212
     public static function debug($str): string
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     }
216 216
 
217 217
     /**
218
-     * @param $str
218
+     * @param string $str
219 219
      * @return string
220 220
      */
221 221
     public static function info($str): string
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     }
225 225
 
226 226
     /**
227
-     * @param $str
227
+     * @param string $str
228 228
      * @return string
229 229
      */
230 230
     public static function notice($str): string
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
     }
270 270
 
271 271
     /**
272
-     * @param $str
272
+     * @param string $str
273 273
      * @return string
274 274
      */
275 275
     public static function alternate($str): string
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
     }
279 279
 
280 280
     /**
281
-     * @param $str
281
+     * @param string $str
282 282
      * @return string
283 283
      */
284 284
     public static function tmuxOrange($str): string
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     }
306 306
 
307 307
     /**
308
-     * @param $str
308
+     * @param string $str
309 309
      * @return string
310 310
      */
311 311
     public static function alternateOver($str): string
Please login to merge, or discard this patch.
nntmux/db/DB.php 2 patches
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\db;
4 4
 
5
-use nntmux\ColorCLI;
6
-use Ramsey\Uuid\Uuid;
7 5
 use App\Models\Settings;
6
+use Ramsey\Uuid\Uuid;
7
+use nntmux\ColorCLI;
8 8
 use nntmux\ConsoleTools;
9 9
 use nntmux\libraries\Cache;
10
-use nntmux\utility\Utility;
11 10
 use nntmux\libraries\CacheException;
11
+use nntmux\utility\Utility;
12 12
 
13 13
 /**
14 14
  * Class for handling connection to MySQL database using PDO.
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -499,7 +499,7 @@  discard block
 block discarded – undo
499 499
     /**
500 500
      * Helper method for queryInsert and queryExec, checks for deadlocks.
501 501
      *
502
-     * @param $query
502
+     * @param string $query
503 503
      * @param bool $insert
504 504
      * @return array|\PDOStatement|string
505 505
      * @throws \RuntimeException
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
      * @param bool   $cache       Indicates if the query result should be cached.
629 629
      * @param int    $cacheExpiry The time in seconds before deleting the query result from the cache server.
630 630
      *
631
-     * @return array Array of results (possibly empty) on success, empty array on failure.
631
+     * @return string Array of results (possibly empty) on success, empty array on failure.
632 632
      */
633 633
     public function queryCalc($query, $cache = false, $cacheExpiry = 600): array
634 634
     {
@@ -1148,7 +1148,7 @@  discard block
 block discarded – undo
1148 1148
      *
1149 1149
      * @param int $attribute
1150 1150
      *
1151
-     * @return false|mixed
1151
+     * @return string
1152 1152
      */
1153 1153
     public function getAttribute($attribute)
1154 1154
     {
Please login to merge, or discard this patch.
nntmux/processing/post/ProcessAdditional.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -548,7 +548,7 @@  discard block
 block discarded – undo
548 548
     protected $tmpPath;
549 549
 
550 550
     /**
551
-     * @param $guidChar
551
+     * @param string $guidChar
552 552
      * @param string $groupID
553 553
      * @throws \RuntimeException
554 554
      * @throws \Exception
@@ -609,7 +609,7 @@  discard block
 block discarded – undo
609 609
     /**
610 610
      * Get all releases that need to be processed.
611 611
      *
612
-     * @param int|string $groupID
612
+     * @param string $groupID
613 613
      * @param string     $guidChar
614 614
      *
615 615
      * @void
@@ -1695,7 +1695,7 @@  discard block
 block discarded – undo
1695 1695
     }
1696 1696
 
1697 1697
     /**
1698
-     * @param $fileLocation
1698
+     * @param string $fileLocation
1699 1699
      * @param $fileExtension
1700 1700
      * @return bool
1701 1701
      * @throws \Exception
@@ -2165,7 +2165,7 @@  discard block
 block discarded – undo
2165 2165
     }
2166 2166
 
2167 2167
     /**
2168
-     * @param $fileLocation
2168
+     * @param string $fileLocation
2169 2169
      * @throws \Exception
2170 2170
      */
2171 2171
     protected function _siftPAR2Info($fileLocation)
@@ -2252,7 +2252,7 @@  discard block
 block discarded – undo
2252 2252
     }
2253 2253
 
2254 2254
     /**
2255
-     * @param $fileLocation
2255
+     * @param string $fileLocation
2256 2256
      * @throws \Exception
2257 2257
      */
2258 2258
     protected function _processNfoFile($fileLocation)
@@ -2268,7 +2268,7 @@  discard block
 block discarded – undo
2268 2268
     }
2269 2269
 
2270 2270
     /**
2271
-     * @param $fileLocation
2271
+     * @param string $fileLocation
2272 2272
      * @throws \Exception
2273 2273
      */
2274 2274
     protected function _processVideoFile($fileLocation)
Please login to merge, or discard this patch.
Unused Use Statements   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\processing\post;
4 4
 
5
-use nntmux\Nfo;
6
-use nntmux\NZB;
7
-use nntmux\NNTP;
8
-use nntmux\db\DB;
9
-use nntmux\ColorCLI;
10
-use nntmux\Releases;
5
+use App\Models\Category;
11 6
 use App\Models\Group;
12
-use nntmux\NameFixer;
13
-use nntmux\Categorize;
14 7
 use App\Models\Release;
15
-use App\Models\Category;
8
+use App\Models\ReleaseFile;
16 9
 use App\Models\Settings;
10
+use dariusiii\rarinfo\ArchiveInfo;
11
+use dariusiii\rarinfo\Par2Info;
12
+use nntmux\Categorize;
13
+use nntmux\ColorCLI;
14
+use nntmux\NNTP;
15
+use nntmux\NZB;
16
+use nntmux\NameFixer;
17
+use nntmux\Nfo;
17 18
 use nntmux\ReleaseExtra;
18 19
 use nntmux\ReleaseImage;
20
+use nntmux\Releases;
19 21
 use nntmux\SphinxSearch;
20
-use App\Models\ReleaseFile;
22
+use nntmux\db\DB;
21 23
 use nntmux\utility\Utility;
22
-use dariusiii\rarinfo\Par2Info;
23
-use dariusiii\rarinfo\ArchiveInfo;
24 24
 
25 25
 class ProcessAdditional
26 26
 {
Please login to merge, or discard this patch.
nntmux/NZBGet.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @param string $guid Release identifier.
144 144
      *
145
-     * @return bool|mixed
145
+     * @return Request
146 146
      */
147 147
     public function sendURLToNZBGet($guid)
148 148
     {
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
      *
408 408
      * @param string $url NZBGet URL to verify.
409 409
      *
410
-     * @return bool|string
410
+     * @return string|false
411 411
      */
412 412
     public function verifyURL($url)
413 413
     {
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6
-use GuzzleHttp\Client;
7 5
 use App\Models\Release;
8
-use nntmux\utility\Utility;
6
+use GuzzleHttp\Client;
9 7
 use GuzzleHttp\Psr7\Request;
8
+use nntmux\db\DB;
9
+use nntmux\utility\Utility;
10 10
 
11 11
 /**
12 12
  * Class NZBGet.
Please login to merge, or discard this patch.
nntmux/libraries/Cache.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      * Store data on the cache server.
40 40
      *
41 41
      *
42
-     * @param $key
42
+     * @param string $key
43 43
      * @param $data
44
-     * @param $expiration
44
+     * @param integer $expiration
45 45
      * @return bool
46 46
      * @throws \nntmux\libraries\CacheException
47 47
      */
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * Attempt to retrieve a value from the cache server, if not set it.
65 65
      *
66 66
      *
67
-     * @param $key
67
+     * @param string $key
68 68
      * @return bool|mixed|string
69 69
      * @throws \nntmux\libraries\CacheException
70 70
      */
Please login to merge, or discard this patch.
public/pages/BasePage.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 require_once NN_LIB.'utility'.DS.'SmartyUtils.php';
4 4
 
5
-use nntmux\db\DB;
6
-use nntmux\SABnzbd;
7
-use App\Models\User;
8
-use App\Models\Settings;
9 5
 use App\Models\RoleExcludedCategory;
6
+use App\Models\Settings;
7
+use App\Models\User;
8
+use nntmux\SABnzbd;
9
+use nntmux\db\DB;
10 10
 
11 11
 class BasePage
12 12
 {
Please login to merge, or discard this patch.
public/pages/forgottenpassword.php 1 patch
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use nntmux\Captcha;
4
-use App\Models\User;
5
-use App\Mail\PasswordReset;
6 3
 use App\Mail\ForgottenPassword;
4
+use App\Mail\PasswordReset;
5
+use App\Models\User;
7 6
 use Illuminate\Support\Facades\Mail;
7
+use nntmux\Captcha;
8 8
 
9 9
 if (User::isLoggedIn()) {
10 10
     header('Location: '.WWW_TOP.'/');
Please login to merge, or discard this patch.