Completed
Branch dev (c992ef)
by Darko
06:17
created
misc/testing/DB/change_USP_provider.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -62,6 +62,9 @@
 block discarded – undo
62 62
     return round((time() - strtotime($timestamp)) / 86400, 5);
63 63
 }
64 64
 
65
+/**
66
+ * @param integer $timestamp
67
+ */
65 68
 function daysOld($timestamp)
66 69
 {
67 70
     return round((time() - $timestamp) / 86400, 5);
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
4 4
 
5
+use nntmux\Binaries;
5 6
 use nntmux\NNTP;
6 7
 use nntmux\db\DB;
7
-use nntmux\Binaries;
8 8
 
9 9
 /* This script will update the groups table to get the new article numbers for each group you have activated.
10 10
   It will also truncate the parts, binaries, collections, and partrepair tables.
Please login to merge, or discard this patch.
nntmux/Backfill.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
      * Backfill all the groups up to user specified time/date.
125 125
      *
126 126
      * @param string     $groupName
127
-     * @param string|int $articles
127
+     * @param string $articles
128 128
      * @param string     $type
129 129
      *
130 130
      * @return void
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6 5
 use App\Models\Group;
7 6
 use App\Models\Settings;
7
+use nntmux\db\DB;
8 8
 
9 9
 class Backfill
10 10
 {
Please login to merge, or discard this patch.
nntmux/NZBExport.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
      *
69 69
      * @param array $params
70 70
      *
71
-     * @return bool
71
+     * @return string|boolean
72 72
      */
73 73
     public function beginExport($params)
74 74
     {
Please login to merge, or discard this patch.
nntmux/Contents.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
     }
156 156
 
157 157
     /**
158
-     * @param $content
158
+     * @param Content $content
159 159
      *
160 160
      * @return mixed
161 161
      */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6
-use App\Models\User;
7 5
 use App\Models\Content;
6
+use App\Models\User;
7
+use nntmux\db\DB;
8 8
 
9 9
 class Contents
10 10
 {
Please login to merge, or discard this patch.
nntmux/XXX.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
     /**
451 451
      * Get Genre id's Of the title.
452 452
      *
453
-     * @param $arr - Array or String
453
+     * @param string $arr - Array or String
454 454
      *
455 455
      * @return string - If array .. 1,2,3,4 if string .. 1
456 456
      */
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
     }
533 533
 
534 534
     /**
535
-     * @param $movie
535
+     * @param string $movie
536 536
      *
537 537
      * @return false|int|string
538 538
      * @throws \Exception
@@ -747,7 +747,7 @@  discard block
 block discarded – undo
747 747
     /**
748 748
      * Checks xxxinfo to make sure releases exist.
749 749
      *
750
-     * @param $releaseName
750
+     * @param string $releaseName
751 751
      * @return \Illuminate\Database\Eloquent\Model|null|static
752 752
      */
753 753
     protected function checkXXXInfoExists($releaseName)
Please login to merge, or discard this patch.
Unused Use Statements   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,19 +2,19 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
5
+use App\Models\Category;
6 6
 use App\Models\Genre;
7 7
 use App\Models\Release;
8
-use App\Models\XxxInfo;
9
-use App\Models\Category;
10 8
 use App\Models\Settings;
9
+use App\Models\XxxInfo;
11 10
 use Illuminate\Support\Carbon;
11
+use Illuminate\Support\Facades\Cache;
12
+use nntmux\db\DB;
12 13
 use nntmux\processing\adult\ADE;
13 14
 use nntmux\processing\adult\ADM;
14 15
 use nntmux\processing\adult\AEBN;
15
-use nntmux\processing\adult\Popporn;
16
-use Illuminate\Support\Facades\Cache;
17 16
 use nntmux\processing\adult\Hotmovies;
17
+use nntmux\processing\adult\Popporn;
18 18
 
19 19
 /**
20 20
  * Class XXX.
Please login to merge, or discard this patch.
misc/testing/Tests/test_giantbomb_API.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
 
5 5
 // Test if your giantbomb key is working.
6 6
 
7
-use nntmux\db\DB;
8 7
 use nntmux\ColorCLI;
8
+use nntmux\db\DB;
9 9
 
10 10
 $giantbombkey = (new DB())->getSetting('giantbombkey');
11 11
 $cli = new ColorCLI();
Please login to merge, or discard this patch.
nntmux/libraries/ForkingImportNZB.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\libraries;
4 4
 
5
-use nntmux\db\DB;
6 5
 use nntmux\ColorCLI;
6
+use nntmux\db\DB;
7 7
 
8 8
 /**
9 9
  * Class ForkingImportNZB.
Please login to merge, or discard this patch.
nntmux/Logging.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6 5
 use App\Models\Settings;
6
+use nntmux\db\DB;
7 7
 
8 8
 /**
9 9
  * Logs/Reports stuff.
Please login to merge, or discard this patch.
nntmux/processing/tv/TraktTv.php 2 patches
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\processing\tv;
4 4
 
5
-use nntmux\ColorCLI;
6 5
 use App\Models\Settings;
6
+use nntmux\ColorCLI;
7 7
 use nntmux\ReleaseImage;
8
-use nntmux\utility\Time;
9 8
 use nntmux\libraries\TraktAPI;
9
+use nntmux\utility\Time;
10 10
 
11 11
 /**
12 12
  * Class TraktTv.
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
      * Main processing director function for scrapers
92 92
      * Calls work query function and initiates processing.
93 93
      *
94
-     * @param      $groupID
95
-     * @param      $guidChar
94
+     * @param      string $groupID
95
+     * @param      string $guidChar
96 96
      * @param      $process
97 97
      * @param bool $local
98 98
      */
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     /**
292 292
      * Retrieve info of TV programme from site using it's API.
293 293
      *
294
-     * @param string|null|array $name Title of programme to look up. Usually a cleaned up version from releases table.
294
+     * @param string $name Title of programme to look up. Usually a cleaned up version from releases table.
295 295
      *
296 296
      * @return array|false    False on failure, an array of information fields otherwise.
297 297
      */
Please login to merge, or discard this patch.