Completed
Branch dev (c992ef)
by Darko
06:17
created
public/pages/sendtonzbget.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use nntmux\NZBGet;
4 3
 use App\Models\User;
4
+use nntmux\NZBGet;
5 5
 
6 6
 if (! User::isLoggedIn()) {
7 7
     $page->show403();
Please login to merge, or discard this patch.
public/pages/getnzb.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use nntmux\NZB;
4
-use App\Models\User;
5
-use nntmux\Releases;
6 3
 use App\Models\Release;
7 4
 use App\Models\Settings;
8
-use nntmux\utility\Utility;
5
+use App\Models\User;
9 6
 use App\Models\UserDownload;
10 7
 use App\Models\UsersRelease;
8
+use nntmux\NZB;
9
+use nntmux\Releases;
10
+use nntmux\utility\Utility;
11 11
 
12 12
 $uid = 0;
13 13
 
Please login to merge, or discard this patch.
app/Models/Release.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
 
370 370
     /**
371 371
      * @param $guid
372
-     * @return \Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\Model|\Illuminate\Support\Collection|null|static|static[]
372
+     * @return string
373 373
      */
374 374
     public static function getByGuid($guid)
375 375
     {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace App\Models;
4 4
 
5
-use nntmux\NZB;
6
-use nntmux\SphinxSearch;
5
+use Illuminate\Database\Eloquent\Model;
7 6
 use Illuminate\Support\Carbon;
8
-use Illuminate\Support\Facades\DB;
9 7
 use Illuminate\Support\Facades\Cache;
10
-use Illuminate\Database\Eloquent\Model;
8
+use Illuminate\Support\Facades\DB;
9
+use nntmux\NZB;
10
+use nntmux\SphinxSearch;
11 11
 
12 12
 class Release extends Model
13 13
 {
Please login to merge, or discard this patch.
nntmux/Releases.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param array  $cat
83 83
      * @param int    $maxAge
84 84
      * @param array  $excludedCats
85
-     * @param string|int $groupName
85
+     * @param integer $groupName
86 86
      *
87 87
      * @return int
88 88
      */
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      * @param string|array $orderBy
124 124
      * @param int    $maxAge
125 125
      * @param array  $excludedCats
126
-     * @param string|int $groupName
126
+     * @param integer $groupName
127 127
      * @param int    $minSize
128 128
      *
129 129
      * @return array
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
      * @param string $usenetName
643 643
      * @param string $posterName
644 644
      * @param string $fileName
645
-     * @param string|int $groupName
645
+     * @param integer $groupName
646 646
      * @param int $sizeFrom
647 647
      * @param int $sizeTo
648 648
      * @param int $hasNfo
@@ -651,7 +651,7 @@  discard block
 block discarded – undo
651 651
      * @param int $daysOld
652 652
      * @param int $offset
653 653
      * @param int $limit
654
-     * @param string|array $orderBy
654
+     * @param string $orderBy
655 655
      * @param int $maxAge
656 656
      * @param int|array $excludedCats
657 657
      * @param string $type
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,14 +2,14 @@
 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\Group;
7 7
 use App\Models\Release;
8
-use App\Models\Category;
9 8
 use App\Models\Settings;
10
-use nntmux\utility\Utility;
11 9
 use Illuminate\Support\Carbon;
12 10
 use Illuminate\Support\Facades\Cache;
11
+use nntmux\db\DB;
12
+use nntmux\utility\Utility;
13 13
 
14 14
 /**
15 15
  * Class Releases.
Please login to merge, or discard this patch.
public/admin/release-files.php 1 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
 require_once dirname(__DIR__).DIRECTORY_SEPARATOR.'smarty.php';
4 4
 
5
-use nntmux\NZB;
6
-use nntmux\db\DB;
7
-use App\Models\User;
8 5
 use App\Models\Release;
9 6
 use App\Models\Settings;
7
+use App\Models\User;
8
+use nntmux\NZB;
9
+use nntmux\db\DB;
10 10
 
11 11
 $page = new AdminPage;
12 12
 $pdo = new DB();
Please login to merge, or discard this patch.
public/pages/api.php 1 patch
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use App\Models\User;
4
-use nntmux\http\API;
5
-use nntmux\Releases;
6 3
 use App\Models\Release;
7
-use App\Models\Settings;
8 4
 use App\Models\ReleaseNfo;
5
+use App\Models\Settings;
6
+use App\Models\User;
9 7
 use App\Models\UserRequest;
8
+use nntmux\Releases;
9
+use nntmux\http\API;
10 10
 use nntmux\utility\Utility;
11 11
 
12 12
 // API functions.
Please login to merge, or discard this patch.
nntmux/libraries/Forking.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@  discard block
 block discarded – undo
531 531
     }
532 532
 
533 533
     /**
534
-     * @return int
534
+     * @return string|null
535 535
      * @throws \Exception
536 536
      */
537 537
     private function safeBinariesMainMethod()
@@ -606,7 +606,7 @@  discard block
 block discarded – undo
606 606
     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
607 607
 
608 608
     /**
609
-     * @return int|null|string
609
+     * @return integer
610 610
      * @throws \Exception
611 611
      */
612 612
     private function fixRelNamesMainMethod()
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
     ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
676 676
 
677 677
     /**
678
-     * @return null|string
678
+     * @return integer
679 679
      * @throws \Exception
680 680
      */
681 681
     private function releasesMainMethod()
@@ -772,7 +772,7 @@  discard block
 block discarded – undo
772 772
     }
773 773
 
774 774
     /**
775
-     * @return int|null|string
775
+     * @return integer
776 776
      * @throws \Exception
777 777
      */
778 778
     private function postProcessAddMainMethod()
Please login to merge, or discard this patch.
Unused Use Statements   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,15 +2,14 @@
 block discarded – undo
2 2
 
3 3
 namespace nntmux\libraries;
4 4
 
5
-use nntmux\Nfo;
6
-use nntmux\NZB;
7
-use nntmux\NNTP;
8
-use nntmux\db\DB;
9
-use App\Models\Tmux;
10
-use nntmux\ColorCLI;
11
-use App\Models\Release;
12 5
 use App\Models\Settings;
6
+use App\Models\Tmux;
13 7
 use Illuminate\Support\Carbon;
8
+use nntmux\ColorCLI;
9
+use nntmux\NNTP;
10
+use nntmux\NZB;
11
+use nntmux\Nfo;
12
+use nntmux\db\DB;
14 13
 use nntmux\processing\PostProcess;
15 14
 
16 15
 /**
Please login to merge, or discard this patch.
public/admin/user-edit.php 1 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__).DIRECTORY_SEPARATOR.'smarty.php';
4 4
 
5
+use App\Mail\AccountChange;
6
+use App\Models\Invitation;
5 7
 use App\Models\User;
6 8
 use App\Models\UserRole;
7
-use App\Models\Invitation;
8
-use App\Mail\AccountChange;
9 9
 use Illuminate\Support\Facades\Mail;
10 10
 
11 11
 $page = new AdminPage();
Please login to merge, or discard this patch.
app/Models/ReleaseFile.php 1 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 App\Models;
4 4
 
5
-use nntmux\SphinxSearch;
6
-use Illuminate\Support\Carbon;
7 5
 use Illuminate\Database\Eloquent\Model;
6
+use Illuminate\Support\Carbon;
7
+use nntmux\SphinxSearch;
8 8
 
9 9
 class ReleaseFile extends Model
10 10
 {
Please login to merge, or discard this patch.