Completed
Branch dev (c992ef)
by Darko
06:17
created
nntmux/ReleaseExtra.php 2 patches
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6 5
 use App\Models\AudioData;
6
+use App\Models\ReleaseExtraFull;
7
+use App\Models\ReleaseSubtitle;
8
+use App\Models\ReleaseUnique;
7 9
 use App\Models\VideoData;
10
+use nntmux\db\DB;
8 11
 use nntmux\utility\Utility;
9
-use App\Models\ReleaseUnique;
10
-use App\Models\ReleaseSubtitle;
11
-use App\Models\ReleaseExtraFull;
12 12
 
13 13
 class ReleaseExtra
14 14
 {
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * ReleaseExtra constructor.
22 22
      *
23
-     * @param null $settings
23
+     * @param DB $settings
24 24
      * @throws \Exception
25 25
      */
26 26
     public function __construct($settings = null)
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
 
332 332
     /**
333 333
      * @param $releaseID
334
-     * @param $uniqueid
334
+     * @param string $uniqueid
335 335
      */
336 336
     public function addUID($releaseID, $uniqueid): void
337 337
     {
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
     /**
378 378
      * @param $id
379
-     * @param $xml
379
+     * @param string $xml
380 380
      */
381 381
     public function addFull($id, $xml)
382 382
     {
Please login to merge, or discard this patch.
public/admin/console-edit.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
 require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
4 4
 
5
-use nntmux\Genres;
6 5
 use nntmux\Console;
6
+use nntmux\Genres;
7 7
 
8 8
 $page = new AdminPage();
9 9
 $console = new Console(['Settings' => $page->pdo]);
Please login to merge, or discard this patch.
public/admin/music-edit.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
 require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
4 4
 
5
-use nntmux\Music;
6 5
 use nntmux\Genres;
6
+use nntmux\Music;
7 7
 
8 8
 $page = new AdminPage();
9 9
 $music = new Music();
Please login to merge, or discard this patch.
public/pages/sitemap.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use nntmux\Sitemap;
4
-use nntmux\Contents;
5 3
 use App\Models\Settings;
4
+use nntmux\Contents;
5
+use nntmux\Sitemap;
6 6
 
7 7
 $te = $page->smarty;
8 8
 
Please login to merge, or discard this patch.
nntmux/Books.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @param $title
117
+     * @param string $title
118 118
      * @return \Illuminate\Database\Eloquent\Model|null|static
119 119
      */
120 120
     public function getBookInfoByName($title)
@@ -340,7 +340,7 @@  discard block
 block discarded – undo
340 340
     }
341 341
 
342 342
     /**
343
-     * @param $title
343
+     * @param string $title
344 344
      *
345 345
      * @return bool|mixed
346 346
      * @throws \Exception
@@ -493,9 +493,9 @@  discard block
 block discarded – undo
493 493
     /**
494 494
      * @param $release_name
495 495
      * @param $releaseID
496
-     * @param $releasetype
496
+     * @param string $releasetype
497 497
      *
498
-     * @return bool|string
498
+     * @return false|string
499 499
      */
500 500
     public function parseTitle($release_name, $releaseID, $releasetype)
501 501
     {
Please login to merge, or discard this patch.
Unused Use Statements   +7 added lines, -7 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;
6 5
 use ApaiIO\ApaiIO;
7
-use GuzzleHttp\Client;
8
-use App\Models\Release;
6
+use ApaiIO\Configuration\GenericConfiguration;
7
+use ApaiIO\Operations\Search;
8
+use ApaiIO\Request\GuzzleRequest;
9
+use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
9 10
 use App\Models\BookInfo;
10 11
 use App\Models\Category;
12
+use App\Models\Release;
11 13
 use App\Models\Settings;
12
-use ApaiIO\Operations\Search;
14
+use GuzzleHttp\Client;
13 15
 use Illuminate\Support\Carbon;
14
-use ApaiIO\Request\GuzzleRequest;
15 16
 use Illuminate\Support\Facades\Cache;
16
-use ApaiIO\Configuration\GenericConfiguration;
17
-use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
17
+use nntmux\db\DB;
18 18
 
19 19
 class Books
20 20
 {
Please login to merge, or discard this patch.
nntmux/utility/Utility.php 2 patches
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
 namespace nntmux\utility;
4 4
 
5
-use nntmux\db\DB;
6
-use nntmux\ColorCLI;
7
-use Ramsey\Uuid\Uuid;
8
-use App\Models\Settings;
9 5
 use App\Extensions\util\Versions;
6
+use App\Models\Settings;
7
+use Ramsey\Uuid\Uuid;
8
+use nntmux\ColorCLI;
9
+use nntmux\db\DB;
10 10
 
11 11
 /**
12 12
  * Class Utility.
Please login to merge, or discard this patch.
Doc Comments   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
     /**
191 191
      * Detect if the command is accessible on the system.
192 192
      *
193
-     * @param $cmd
193
+     * @param string $cmd
194 194
      *
195 195
      * @return bool|null Returns true if found, false if not found, and null if which is not detected.
196 196
      */
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     }
281 281
 
282 282
     /**
283
-     * @param array  $elements
283
+     * @param string[]  $elements
284 284
      * @param string $prefix
285 285
      *
286 286
      * @return string
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
      * Operates directly on the text string, but also returns the result for situations requiring a
308 308
      * return value (use in ternary, etc.)/
309 309
      *
310
-     * @param $text        String variable to strip.
310
+     * @param string $text        String variable to strip.
311 311
      *
312 312
      * @return string    The stripped variable.
313 313
      */
@@ -372,6 +372,9 @@  discard block
 block discarded – undo
372 372
         return $string === '' ? false : $string;
373 373
     }
374 374
 
375
+    /**
376
+     * @param string|null $path
377
+     */
375 378
     public static function setCoversConstant($path)
376 379
     {
377 380
         if (! defined('NN_COVERS')) {
@@ -467,7 +470,7 @@  discard block
 block discarded – undo
467 470
      *
468 471
      * @param array $options See details below.
469 472
      *
470
-     * @return bool|mixed
473
+     * @return string
471 474
      * @static
472 475
      */
473 476
     public static function getUrl(array $options = [])
@@ -1076,7 +1079,7 @@  discard block
 block discarded – undo
1076 1079
     /**
1077 1080
      * Simple function to reduce duplication in html string formatting.
1078 1081
      *
1079
-     * @param $string
1082
+     * @param string $string
1080 1083
      *
1081 1084
      * @return string
1082 1085
      */
Please login to merge, or discard this patch.
public/pages/contact-us.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use nntmux\Captcha;
4 3
 use App\Mail\ContactUs;
5 4
 use App\Models\Settings;
6 5
 use Illuminate\Support\Facades\Mail;
6
+use nntmux\Captcha;
7 7
 
8 8
 $captcha = new Captcha($page);
9 9
 $msg = '';
Please login to merge, or discard this patch.
nntmux/Music.php 2 patches
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @param $artist
111
-     * @param $album
110
+     * @param string $artist
111
+     * @param string $album
112 112
      * @return \Illuminate\Database\Eloquent\Model|null|static
113 113
      */
114 114
     public function getMusicInfoByName($artist, $album)
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
     }
351 351
 
352 352
     /**
353
-     * @param      $title
353
+     * @param      string $title
354 354
      * @param      $year
355 355
      * @param null $amazdata
356 356
      *
@@ -747,9 +747,9 @@  discard block
 block discarded – undo
747 747
     }
748 748
 
749 749
     /**
750
-     * @param $nodeId
750
+     * @param string $nodeId
751 751
      *
752
-     * @return bool|string
752
+     * @return string|false
753 753
      */
754 754
     public function matchBrowseNode($nodeId)
755 755
     {
Please login to merge, or discard this patch.
Unused Use Statements   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux;
4 4
 
5
-use nntmux\db\DB;
6 5
 use ApaiIO\ApaiIO;
6
+use ApaiIO\Configuration\GenericConfiguration;
7
+use ApaiIO\Operations\Search;
8
+use ApaiIO\Request\GuzzleRequest;
9
+use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
10
+use App\Models\Category;
7 11
 use App\Models\Genre;
8
-use GuzzleHttp\Client;
12
+use App\Models\MusicInfo;
9 13
 use App\Models\Release;
10
-use App\Models\Category;
11 14
 use App\Models\Settings;
12
-use App\Models\MusicInfo;
13
-use ApaiIO\Operations\Search;
15
+use GuzzleHttp\Client;
14 16
 use Illuminate\Support\Carbon;
15
-use ApaiIO\Request\GuzzleRequest;
16 17
 use Illuminate\Support\Facades\Cache;
17
-use ApaiIO\Configuration\GenericConfiguration;
18
-use ApaiIO\ResponseTransformer\XmlToSimpleXmlObject;
18
+use nntmux\db\DB;
19 19
 
20 20
 /**
21 21
  * Class Music.
Please login to merge, or discard this patch.
misc/update/tmux/run.php 2 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -58,6 +58,9 @@  discard block
 block discarded – undo
58 58
 echo ColorCLI::primary(number_format($ran).' collections reset.');
59 59
 sleep(2);
60 60
 
61
+/**
62
+ * @param string $pane
63
+ */
61 64
 function writelog($pane)
62 65
 {
63 66
     $path = NN_RES.'logs';
@@ -71,6 +74,9 @@  discard block
 block discarded – undo
71 74
     return '';
72 75
 }
73 76
 
77
+/**
78
+ * @param string $cmd
79
+ */
74 80
 function command_exist($cmd)
75 81
 {
76 82
     $returnVal = exec("which $cmd 2>/dev/null");
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 require_once dirname(__DIR__, 3).DIRECTORY_SEPARATOR.'bootstrap/autoload.php';
4 4
 
5
+use App\Models\Settings;
6
+use nntmux\ColorCLI;
5 7
 use nntmux\Tmux;
6 8
 use nntmux\db\DB;
7
-use nntmux\ColorCLI;
8
-use App\Models\Settings;
9 9
 use nntmux\utility\Utility;
10 10
 
11 11
 $pdo = new DB();
Please login to merge, or discard this patch.