@@ -1,7 +1,7 @@ |
||
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(); |
@@ -1,13 +1,13 @@ |
||
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 |
@@ -369,7 +369,7 @@ |
||
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 | { |
@@ -2,12 +2,12 @@ |
||
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 | { |
@@ -82,7 +82,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -2,14 +2,14 @@ |
||
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. |
@@ -2,11 +2,11 @@ |
||
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(); |
@@ -1,12 +1,12 @@ |
||
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. |
@@ -531,7 +531,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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() |
@@ -2,15 +2,14 @@ |
||
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 | /** |
@@ -2,10 +2,10 @@ |
||
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(); |
@@ -2,9 +2,9 @@ |
||
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 | { |