@@ -2,11 +2,11 @@ |
||
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. |
@@ -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. |
@@ -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 | { |
@@ -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 | { |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | require_once dirname(__DIR__, 2).DIRECTORY_SEPARATOR.'bootstrap/autoload.php'; |
4 | 4 | |
5 | -use nntmux\db\DB; |
|
6 | -use nntmux\SphinxSearch; |
|
7 | 5 | use nntmux\ReleaseSearch; |
6 | +use nntmux\SphinxSearch; |
|
7 | +use nntmux\db\DB; |
|
8 | 8 | |
9 | 9 | if (NN_RELEASE_SEARCH_TYPE !== ReleaseSearch::SPHINX) { |
10 | 10 | exit('Error, NN_RELEASE_SEARCH_TYPE in nntmux/config/settings.php must be set to SPHINX!'.PHP_EOL); |
@@ -2,13 +2,13 @@ |
||
2 | 2 | |
3 | 3 | namespace nntmux\db\populate; |
4 | 4 | |
5 | -use nntmux\ColorCLI; |
|
6 | -use App\Models\Settings; |
|
7 | -use nntmux\ReleaseImage; |
|
5 | +use App\Models\AnidbEpisode; |
|
8 | 6 | use App\Models\AnidbInfo; |
9 | 7 | use App\Models\AnidbTitle; |
10 | -use App\Models\AnidbEpisode; |
|
8 | +use App\Models\Settings; |
|
11 | 9 | use Illuminate\Support\Carbon; |
10 | +use nntmux\ColorCLI; |
|
11 | +use nntmux\ReleaseImage; |
|
12 | 12 | |
13 | 13 | class AniDB |
14 | 14 | { |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace nntmux; |
4 | 4 | |
5 | -use nntmux\db\DB; |
|
6 | 5 | use App\Models\Predb; |
6 | +use nntmux\db\DB; |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Class IRCScraper. |