From e0e1aa924ba925be71db9fccbc4b23292ecf1a2c Mon Sep 17 00:00:00 2001 From: HDVinnie Date: Fri, 22 Feb 2019 13:16:32 +0000 Subject: [PATCH] Apply fixes from StyleCI --- app/Bots/CasinoBot.php | 4 ++-- app/Bots/NerdBot.php | 4 ++-- app/Bots/SystemBot.php | 6 +++--- app/Console/Commands/AutoBan.php | 2 +- app/Console/Commands/AutoCorrectHistory.php | 2 +- app/Console/Commands/AutoDeactivateWarning.php | 2 +- .../Commands/AutoDisableInactiveUsers.php | 2 +- app/Console/Commands/AutoFlushPeers.php | 2 +- app/Console/Commands/AutoGroup.php | 2 +- app/Console/Commands/AutoNerdStat.php | 2 +- app/Console/Commands/AutoPreWarning.php | 2 +- .../AutoRecycleClaimedTorrentRequests.php | 2 +- app/Console/Commands/AutoRecycleFailedLogins.php | 2 +- app/Console/Commands/AutoRecycleInvites.php | 2 +- .../Commands/AutoRemoveFeaturedTorrent.php | 2 +- .../Commands/AutoRemovePersonalFreeleech.php | 2 +- .../Commands/AutoSoftDeleteDisabledUsers.php | 2 +- app/Console/Commands/AutoWarning.php | 2 +- app/Helpers/TorrentHelper.php | 2 +- app/Http/Controllers/API/ChatController.php | 6 +++--- app/Http/Controllers/AlbumController.php | 2 +- app/Http/Controllers/AnnounceController.php | 6 +++--- .../Controllers/Auth/ApplicationController.php | 4 ++-- app/Http/Controllers/Auth/RegisterController.php | 10 +++++----- .../Controllers/Auth/ResetPasswordController.php | 2 +- app/Http/Controllers/BonusController.php | 8 ++++---- app/Http/Controllers/BugController.php | 2 +- app/Http/Controllers/CommentController.php | 2 +- app/Http/Controllers/GraveyardController.php | 2 +- app/Http/Controllers/HomeController.php | 2 +- app/Http/Controllers/InviteController.php | 4 ++-- .../Controllers/PrivateMessageController.php | 2 +- app/Http/Controllers/ReportController.php | 2 +- app/Http/Controllers/RequestController.php | 6 +++--- .../Controllers/Staff/ApplicationController.php | 4 ++-- app/Http/Controllers/Staff/BanController.php | 4 ++-- app/Http/Controllers/Staff/CatalogController.php | 2 +- app/Http/Controllers/Staff/FlushController.php | 2 +- app/Http/Controllers/Staff/GiftController.php | 2 +- .../Controllers/Staff/ModerationController.php | 6 +++--- app/Http/Controllers/Staff/ReportController.php | 2 +- app/Http/Controllers/Staff/UserController.php | 2 +- app/Http/Controllers/TorrentController.php | 16 ++++++++-------- app/Http/Controllers/UserController.php | 12 ++++++------ app/Http/Middleware/CheckIfOnline.php | 2 +- app/Http/Middleware/SetLanguage.php | 2 +- app/Jobs/ProcessMassPM.php | 2 +- app/Notifications/NewBon.php | 2 +- app/Notifications/NewRequestBounty.php | 2 +- app/Notifications/NewRequestClaim.php | 2 +- app/Notifications/NewRequestFill.php | 2 +- app/Notifications/NewRequestFillApprove.php | 2 +- app/Notifications/NewRequestFillReject.php | 2 +- app/Notifications/NewRequestUnclaim.php | 2 +- app/Repositories/ChatRepository.php | 6 +++--- 55 files changed, 92 insertions(+), 92 deletions(-) diff --git a/app/Bots/CasinoBot.php b/app/Bots/CasinoBot.php index d3c2dc0e51..82da716eb6 100644 --- a/app/Bots/CasinoBot.php +++ b/app/Bots/CasinoBot.php @@ -12,13 +12,13 @@ namespace App\Bots; +use Carbon\Carbon; use App\Models\Bot; use App\Models\User; +use App\Events\Chatter; use App\Models\UserEcho; -use Carbon\Carbon; use App\Models\UserAudible; use App\Models\BotTransaction; -use App\Events\Chatter; use App\Repositories\ChatRepository; use App\Http\Resources\UserEchoResource; use App\Http\Resources\UserAudibleResource; diff --git a/app/Bots/NerdBot.php b/app/Bots/NerdBot.php index cad414a080..16699dffb1 100644 --- a/app/Bots/NerdBot.php +++ b/app/Bots/NerdBot.php @@ -12,17 +12,17 @@ namespace App\Bots; +use Carbon\Carbon; use App\Models\Ban; use App\Models\Bot; use App\Models\Peer; use App\Models\User; +use App\Events\Chatter; use App\Models\Torrent; use App\Models\Warning; use App\Models\UserEcho; -use Carbon\Carbon; use App\Models\UserAudible; use App\Models\BotTransaction; -use App\Events\Chatter; use App\Repositories\ChatRepository; use App\Http\Resources\UserEchoResource; use App\Http\Resources\UserAudibleResource; diff --git a/app/Bots/SystemBot.php b/app/Bots/SystemBot.php index c34d0151ec..5743da7351 100644 --- a/app/Bots/SystemBot.php +++ b/app/Bots/SystemBot.php @@ -12,14 +12,14 @@ namespace App\Bots; +use Carbon\Carbon; use App\Models\Bot; use App\Models\User; +use App\Events\Chatter; use App\Models\UserEcho; -use Carbon\Carbon; use App\Models\UserAudible; -use App\Events\Chatter; -use App\Models\BonTransactions; use App\Notifications\NewBon; +use App\Models\BonTransactions; use App\Repositories\ChatRepository; use App\Http\Resources\UserEchoResource; use App\Http\Resources\UserAudibleResource; diff --git a/app/Console/Commands/AutoBan.php b/app/Console/Commands/AutoBan.php index 9b76d43f37..f752baa77f 100644 --- a/app/Console/Commands/AutoBan.php +++ b/app/Console/Commands/AutoBan.php @@ -14,9 +14,9 @@ namespace App\Console\Commands; use App\Models\Ban; +use App\Mail\BanUser; use App\Models\Group; use App\Models\Warning; -use App\Mail\BanUser; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Mail; diff --git a/app/Console/Commands/AutoCorrectHistory.php b/app/Console/Commands/AutoCorrectHistory.php index a3593f0084..4a1f6427a3 100644 --- a/app/Console/Commands/AutoCorrectHistory.php +++ b/app/Console/Commands/AutoCorrectHistory.php @@ -13,8 +13,8 @@ namespace App\Console\Commands; -use App\Models\History; use Carbon\Carbon; +use App\Models\History; use Illuminate\Console\Command; class AutoCorrectHistory extends Command diff --git a/app/Console/Commands/AutoDeactivateWarning.php b/app/Console/Commands/AutoDeactivateWarning.php index a0d117957e..c9688a84f8 100644 --- a/app/Console/Commands/AutoDeactivateWarning.php +++ b/app/Console/Commands/AutoDeactivateWarning.php @@ -13,8 +13,8 @@ namespace App\Console\Commands; -use App\Models\Warning; use Carbon\Carbon; +use App\Models\Warning; use App\Models\PrivateMessage; use Illuminate\Console\Command; diff --git a/app/Console/Commands/AutoDisableInactiveUsers.php b/app/Console/Commands/AutoDisableInactiveUsers.php index d5df7ef609..85e1cd016c 100644 --- a/app/Console/Commands/AutoDisableInactiveUsers.php +++ b/app/Console/Commands/AutoDisableInactiveUsers.php @@ -13,9 +13,9 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\User; use App\Models\Group; -use Carbon\Carbon; use Illuminate\Console\Command; use App\Jobs\SendDisableUserMail; diff --git a/app/Console/Commands/AutoFlushPeers.php b/app/Console/Commands/AutoFlushPeers.php index 027fad2bd2..e3301d2b72 100644 --- a/app/Console/Commands/AutoFlushPeers.php +++ b/app/Console/Commands/AutoFlushPeers.php @@ -13,9 +13,9 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\Peer; use App\Models\History; -use Carbon\Carbon; use Illuminate\Console\Command; class AutoFlushPeers extends Command diff --git a/app/Console/Commands/AutoGroup.php b/app/Console/Commands/AutoGroup.php index 96c0b5f5b2..8ebd6df58e 100644 --- a/app/Console/Commands/AutoGroup.php +++ b/app/Console/Commands/AutoGroup.php @@ -13,10 +13,10 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\User; use App\Models\Group; use App\Models\History; -use Carbon\Carbon; use Illuminate\Console\Command; class AutoGroup extends Command diff --git a/app/Console/Commands/AutoNerdStat.php b/app/Console/Commands/AutoNerdStat.php index 2e36dd45d5..8e02e7621e 100644 --- a/app/Console/Commands/AutoNerdStat.php +++ b/app/Console/Commands/AutoNerdStat.php @@ -13,12 +13,12 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\Ban; use App\Models\Peer; use App\Models\User; use App\Models\Torrent; use App\Models\Warning; -use Carbon\Carbon; use Illuminate\Console\Command; use App\Repositories\ChatRepository; diff --git a/app/Console/Commands/AutoPreWarning.php b/app/Console/Commands/AutoPreWarning.php index 6110bc2a46..f2e80c574c 100644 --- a/app/Console/Commands/AutoPreWarning.php +++ b/app/Console/Commands/AutoPreWarning.php @@ -13,10 +13,10 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\User; use App\Models\History; use App\Models\Warning; -use Carbon\Carbon; use App\Models\PrivateMessage; use Illuminate\Console\Command; diff --git a/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php b/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php index 37b9d6ecff..f938025887 100644 --- a/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php +++ b/app/Console/Commands/AutoRecycleClaimedTorrentRequests.php @@ -15,8 +15,8 @@ use Carbon\Carbon; use App\Models\TorrentRequest; -use App\Models\TorrentRequestClaim; use Illuminate\Console\Command; +use App\Models\TorrentRequestClaim; use App\Repositories\ChatRepository; class AutoRecycleClaimedTorrentRequests extends Command diff --git a/app/Console/Commands/AutoRecycleFailedLogins.php b/app/Console/Commands/AutoRecycleFailedLogins.php index 608ea262d1..9f17b9b7ba 100644 --- a/app/Console/Commands/AutoRecycleFailedLogins.php +++ b/app/Console/Commands/AutoRecycleFailedLogins.php @@ -14,8 +14,8 @@ namespace App\Console\Commands; use Carbon\Carbon; -use App\Models\FailedLoginAttempt; use Illuminate\Console\Command; +use App\Models\FailedLoginAttempt; class AutoRecycleFailedLogins extends Command { diff --git a/app/Console/Commands/AutoRecycleInvites.php b/app/Console/Commands/AutoRecycleInvites.php index 1d3e9546bc..f551c8cef1 100644 --- a/app/Console/Commands/AutoRecycleInvites.php +++ b/app/Console/Commands/AutoRecycleInvites.php @@ -13,8 +13,8 @@ namespace App\Console\Commands; -use App\Models\Invite; use Carbon\Carbon; +use App\Models\Invite; use Illuminate\Console\Command; class AutoRecycleInvites extends Command diff --git a/app/Console/Commands/AutoRemoveFeaturedTorrent.php b/app/Console/Commands/AutoRemoveFeaturedTorrent.php index a938c5ad8f..0ba160350d 100644 --- a/app/Console/Commands/AutoRemoveFeaturedTorrent.php +++ b/app/Console/Commands/AutoRemoveFeaturedTorrent.php @@ -13,8 +13,8 @@ namespace App\Console\Commands; -use App\Models\Torrent; use Carbon\Carbon; +use App\Models\Torrent; use App\Models\FeaturedTorrent; use Illuminate\Console\Command; use App\Repositories\ChatRepository; diff --git a/app/Console/Commands/AutoRemovePersonalFreeleech.php b/app/Console/Commands/AutoRemovePersonalFreeleech.php index 5dce31b391..2122018c75 100644 --- a/app/Console/Commands/AutoRemovePersonalFreeleech.php +++ b/app/Console/Commands/AutoRemovePersonalFreeleech.php @@ -15,8 +15,8 @@ use Carbon\Carbon; use App\Models\PrivateMessage; -use App\Models\PersonalFreeleech; use Illuminate\Console\Command; +use App\Models\PersonalFreeleech; class AutoRemovePersonalFreeleech extends Command { diff --git a/app/Console/Commands/AutoSoftDeleteDisabledUsers.php b/app/Console/Commands/AutoSoftDeleteDisabledUsers.php index b0e50c972f..28dcc718cd 100644 --- a/app/Console/Commands/AutoSoftDeleteDisabledUsers.php +++ b/app/Console/Commands/AutoSoftDeleteDisabledUsers.php @@ -13,9 +13,9 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\User; use App\Models\Group; -use Carbon\Carbon; use Illuminate\Console\Command; use App\Jobs\SendDeleteUserMail; diff --git a/app/Console/Commands/AutoWarning.php b/app/Console/Commands/AutoWarning.php index 2ce607f2a3..6378c7e05c 100644 --- a/app/Console/Commands/AutoWarning.php +++ b/app/Console/Commands/AutoWarning.php @@ -13,9 +13,9 @@ namespace App\Console\Commands; +use Carbon\Carbon; use App\Models\History; use App\Models\Warning; -use Carbon\Carbon; use App\Models\PrivateMessage; use Illuminate\Console\Command; diff --git a/app/Helpers/TorrentHelper.php b/app/Helpers/TorrentHelper.php index 6de361babf..dd7971eb17 100644 --- a/app/Helpers/TorrentHelper.php +++ b/app/Helpers/TorrentHelper.php @@ -17,8 +17,8 @@ use App\Models\Wish; use App\Models\Follow; use App\Models\Torrent; -use App\Models\PrivateMessage; use App\Bots\IRCAnnounceBot; +use App\Models\PrivateMessage; use App\Notifications\NewUpload; use App\Achievements\UserMadeUpload; use App\Achievements\UserMade25Uploads; diff --git a/app/Http/Controllers/API/ChatController.php b/app/Http/Controllers/API/ChatController.php index 6020e99741..e723a11311 100644 --- a/app/Http/Controllers/API/ChatController.php +++ b/app/Http/Controllers/API/ChatController.php @@ -13,15 +13,15 @@ namespace App\Http\Controllers\API; +use Carbon\Carbon; use App\Models\Bot; use App\Models\User; -use App\Models\UserEcho; -use Carbon\Carbon; -use App\Models\UserAudible; use App\Bots\NerdBot; use App\Bots\CasinoBot; use App\Bots\SystemBot; use App\Events\Chatter; +use App\Models\UserEcho; +use App\Models\UserAudible; use Illuminate\Http\Request; use Illuminate\Auth\AuthManager; use App\Http\Resources\BotResource; diff --git a/app/Http/Controllers/AlbumController.php b/app/Http/Controllers/AlbumController.php index 0ccb46ebc9..286921adef 100644 --- a/app/Http/Controllers/AlbumController.php +++ b/app/Http/Controllers/AlbumController.php @@ -14,8 +14,8 @@ namespace App\Http\Controllers; use Image; -use App\Models\Album; use Carbon\Carbon; +use App\Models\Album; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use App\Services\Clients\OmdbClient; diff --git a/app/Http/Controllers/AnnounceController.php b/app/Http/Controllers/AnnounceController.php index 89239fe2eb..5f6ed39e4c 100644 --- a/app/Http/Controllers/AnnounceController.php +++ b/app/Http/Controllers/AnnounceController.php @@ -13,16 +13,16 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Peer; use App\Models\User; use App\Models\Group; use App\Models\History; use App\Models\Torrent; -use Carbon\Carbon; -use App\Models\FreeleechToken; use App\Services\Bencode; -use App\Models\PersonalFreeleech; use Illuminate\Http\Request; +use App\Models\FreeleechToken; +use App\Models\PersonalFreeleech; class AnnounceController extends Controller { diff --git a/app/Http/Controllers/Auth/ApplicationController.php b/app/Http/Controllers/Auth/ApplicationController.php index 4c96dbff7a..77443a2c24 100644 --- a/app/Http/Controllers/Auth/ApplicationController.php +++ b/app/Http/Controllers/Auth/ApplicationController.php @@ -13,11 +13,11 @@ namespace App\Http\Controllers\Auth; use App\Models\Application; -use App\Models\ApplicationUrlProof; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; -use App\Models\ApplicationImageProof; +use App\Models\ApplicationUrlProof; use App\Http\Controllers\Controller; +use App\Models\ApplicationImageProof; class ApplicationController extends Controller { diff --git a/app/Http/Controllers/Auth/RegisterController.php b/app/Http/Controllers/Auth/RegisterController.php index 0ccd6e4872..9cadceaeb0 100755 --- a/app/Http/Controllers/Auth/RegisterController.php +++ b/app/Http/Controllers/Auth/RegisterController.php @@ -13,18 +13,18 @@ namespace App\Http\Controllers\Auth; +use Carbon\Carbon; use App\Models\User; use App\Models\Group; use App\Models\Invite; -use Carbon\Carbon; -use App\Models\UserPrivacy; use App\Rules\Captcha; -use App\Models\PrivateMessage; -use App\Models\UserActivation; -use App\Models\UserNotification; +use App\Models\UserPrivacy; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\PrivateMessage; +use App\Models\UserActivation; use App\Jobs\SendActivationMail; +use App\Models\UserNotification; use App\Http\Controllers\Controller; use App\Repositories\ChatRepository; use Illuminate\Support\Facades\Hash; diff --git a/app/Http/Controllers/Auth/ResetPasswordController.php b/app/Http/Controllers/Auth/ResetPasswordController.php index 298690a4b5..184b48cef1 100755 --- a/app/Http/Controllers/Auth/ResetPasswordController.php +++ b/app/Http/Controllers/Auth/ResetPasswordController.php @@ -15,8 +15,8 @@ namespace App\Http\Controllers\Auth; use App\Models\Group; -use App\Models\UserActivation; use Illuminate\Support\Str; +use App\Models\UserActivation; use App\Http\Controllers\Controller; use Illuminate\Foundation\Auth\ResetsPasswords; diff --git a/app/Http/Controllers/BonusController.php b/app/Http/Controllers/BonusController.php index 3d5b114b14..0d15ee2b70 100755 --- a/app/Http/Controllers/BonusController.php +++ b/app/Http/Controllers/BonusController.php @@ -13,17 +13,17 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Post; use App\Models\User; use App\Models\Torrent; -use Carbon\Carbon; use App\Models\BonExchange; -use App\Models\PrivateMessage; -use App\Models\BonTransactions; -use App\Models\PersonalFreeleech; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use App\Notifications\NewBon; +use App\Models\PrivateMessage; +use App\Models\BonTransactions; +use App\Models\PersonalFreeleech; use App\Notifications\NewPostTip; use Illuminate\Support\Facades\DB; use App\Notifications\NewUploadTip; diff --git a/app/Http/Controllers/BugController.php b/app/Http/Controllers/BugController.php index 2b883be7b2..f1ffbaee10 100755 --- a/app/Http/Controllers/BugController.php +++ b/app/Http/Controllers/BugController.php @@ -13,8 +13,8 @@ namespace App\Http\Controllers; -use App\Models\User; use App\Mail\Bug; +use App\Models\User; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; diff --git a/app/Http/Controllers/CommentController.php b/app/Http/Controllers/CommentController.php index 056a35bb2e..55477abfb1 100755 --- a/app/Http/Controllers/CommentController.php +++ b/app/Http/Controllers/CommentController.php @@ -17,9 +17,9 @@ use App\Models\Article; use App\Models\Comment; use App\Models\Torrent; -use App\Models\TorrentRequest; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\TorrentRequest; use App\Notifications\NewComment; use App\Repositories\ChatRepository; use App\Achievements\UserMadeComment; diff --git a/app/Http/Controllers/GraveyardController.php b/app/Http/Controllers/GraveyardController.php index db23a7a679..7b4e121945 100644 --- a/app/Http/Controllers/GraveyardController.php +++ b/app/Http/Controllers/GraveyardController.php @@ -13,9 +13,9 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Torrent; use App\Models\Graveyard; -use Carbon\Carbon; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use App\Repositories\TorrentFacetedRepository; diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php index 690247fa8c..1bbcc1bb58 100755 --- a/app/Http/Controllers/HomeController.php +++ b/app/Http/Controllers/HomeController.php @@ -13,6 +13,7 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Poll; use App\Models\Post; use App\Models\User; @@ -20,7 +21,6 @@ use App\Models\Topic; use App\Models\Article; use App\Models\Torrent; -use Carbon\Carbon; use App\Models\FeaturedTorrent; use App\Models\PersonalFreeleech; use Illuminate\Support\Facades\DB; diff --git a/app/Http/Controllers/InviteController.php b/app/Http/Controllers/InviteController.php index ddcae2f68c..1111e77ec7 100644 --- a/app/Http/Controllers/InviteController.php +++ b/app/Http/Controllers/InviteController.php @@ -13,10 +13,10 @@ namespace App\Http\Controllers; -use App\Models\User; -use App\Models\Invite; use Carbon\Carbon; +use App\Models\User; use Ramsey\Uuid\Uuid; +use App\Models\Invite; use App\Mail\InviteUser; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; diff --git a/app/Http/Controllers/PrivateMessageController.php b/app/Http/Controllers/PrivateMessageController.php index 2aba93a6af..7147e2cf44 100644 --- a/app/Http/Controllers/PrivateMessageController.php +++ b/app/Http/Controllers/PrivateMessageController.php @@ -14,9 +14,9 @@ namespace App\Http\Controllers; use App\Models\User; -use App\Models\PrivateMessage; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\PrivateMessage; class PrivateMessageController extends Controller { diff --git a/app/Http/Controllers/ReportController.php b/app/Http/Controllers/ReportController.php index 4de4ac719b..b891870ae1 100644 --- a/app/Http/Controllers/ReportController.php +++ b/app/Http/Controllers/ReportController.php @@ -16,9 +16,9 @@ use App\Models\User; use App\Models\Report; use App\Models\Torrent; -use App\Models\TorrentRequest; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\TorrentRequest; class ReportController extends Controller { diff --git a/app/Http/Controllers/RequestController.php b/app/Http/Controllers/RequestController.php index 4a09a2f075..edeeb3c23c 100644 --- a/app/Http/Controllers/RequestController.php +++ b/app/Http/Controllers/RequestController.php @@ -13,17 +13,17 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Type; use App\Models\User; use App\Models\Torrent; use App\Models\Category; -use Carbon\Carbon; +use Brian2694\Toastr\Toastr; +use Illuminate\Http\Request; use App\Models\PrivateMessage; use App\Models\TorrentRequest; use App\Models\BonTransactions; use App\Models\TorrentRequestClaim; -use Brian2694\Toastr\Toastr; -use Illuminate\Http\Request; use App\Models\TorrentRequestBounty; use App\Repositories\ChatRepository; use App\Notifications\NewRequestFill; diff --git a/app/Http/Controllers/Staff/ApplicationController.php b/app/Http/Controllers/Staff/ApplicationController.php index 0b1d9c5d6c..8b379842b7 100644 --- a/app/Http/Controllers/Staff/ApplicationController.php +++ b/app/Http/Controllers/Staff/ApplicationController.php @@ -12,11 +12,11 @@ namespace App\Http\Controllers\Staff; -use App\Models\Invite; use Carbon\Carbon; -use App\Models\Application; use Ramsey\Uuid\Uuid; +use App\Models\Invite; use App\Mail\InviteUser; +use App\Models\Application; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use App\Mail\DenyApplication; diff --git a/app/Http/Controllers/Staff/BanController.php b/app/Http/Controllers/Staff/BanController.php index 0f2d5c09bf..269c1556f8 100644 --- a/app/Http/Controllers/Staff/BanController.php +++ b/app/Http/Controllers/Staff/BanController.php @@ -13,11 +13,11 @@ namespace App\Http\Controllers\Staff; +use Carbon\Carbon; use App\Models\Ban; use App\Models\User; -use App\Models\Group; -use Carbon\Carbon; use App\Mail\BanUser; +use App\Models\Group; use App\Mail\UnbanUser; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; diff --git a/app/Http/Controllers/Staff/CatalogController.php b/app/Http/Controllers/Staff/CatalogController.php index 3fb1c47e88..e07baae826 100644 --- a/app/Http/Controllers/Staff/CatalogController.php +++ b/app/Http/Controllers/Staff/CatalogController.php @@ -14,9 +14,9 @@ namespace App\Http\Controllers\Staff; use App\Models\Catalog; -use App\Models\CatalogTorrent; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\CatalogTorrent; use App\Http\Controllers\Controller; class CatalogController extends Controller diff --git a/app/Http/Controllers/Staff/FlushController.php b/app/Http/Controllers/Staff/FlushController.php index d6c81b439d..3ba7cb6883 100644 --- a/app/Http/Controllers/Staff/FlushController.php +++ b/app/Http/Controllers/Staff/FlushController.php @@ -13,9 +13,9 @@ namespace App\Http\Controllers\Staff; +use Carbon\Carbon; use App\Models\Peer; use App\Models\History; -use Carbon\Carbon; use Brian2694\Toastr\Toastr; use App\Http\Controllers\Controller; diff --git a/app/Http/Controllers/Staff/GiftController.php b/app/Http/Controllers/Staff/GiftController.php index 99129073a0..73ce539074 100644 --- a/app/Http/Controllers/Staff/GiftController.php +++ b/app/Http/Controllers/Staff/GiftController.php @@ -14,9 +14,9 @@ namespace App\Http\Controllers\Staff; use App\Models\User; -use App\Models\PrivateMessage; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\PrivateMessage; use App\Http\Controllers\Controller; class GiftController extends Controller diff --git a/app/Http/Controllers/Staff/ModerationController.php b/app/Http/Controllers/Staff/ModerationController.php index 9b79f94574..79d7bbd5c7 100644 --- a/app/Http/Controllers/Staff/ModerationController.php +++ b/app/Http/Controllers/Staff/ModerationController.php @@ -13,13 +13,13 @@ namespace App\Http\Controllers\Staff; -use App\Models\Torrent; use Carbon\Carbon; -use App\Models\PrivateMessage; -use App\Models\TorrentRequest; +use App\Models\Torrent; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; use App\Helpers\TorrentHelper; +use App\Models\PrivateMessage; +use App\Models\TorrentRequest; use App\Http\Controllers\Controller; use App\Repositories\ChatRepository; diff --git a/app/Http/Controllers/Staff/ReportController.php b/app/Http/Controllers/Staff/ReportController.php index 323945d72c..090396b262 100644 --- a/app/Http/Controllers/Staff/ReportController.php +++ b/app/Http/Controllers/Staff/ReportController.php @@ -14,9 +14,9 @@ namespace App\Http\Controllers\Staff; use App\Models\Report; -use App\Models\PrivateMessage; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\PrivateMessage; use App\Http\Controllers\Controller; class ReportController extends Controller diff --git a/app/Http/Controllers/Staff/UserController.php b/app/Http/Controllers/Staff/UserController.php index ce930d3303..796451ca9c 100755 --- a/app/Http/Controllers/Staff/UserController.php +++ b/app/Http/Controllers/Staff/UserController.php @@ -26,9 +26,9 @@ use App\Models\Comment; use App\Models\Message; use App\Models\Torrent; -use App\Models\PrivateMessage; use Brian2694\Toastr\Toastr; use Illuminate\Http\Request; +use App\Models\PrivateMessage; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\Hash; diff --git a/app/Http/Controllers/TorrentController.php b/app/Http/Controllers/TorrentController.php index 9e7df0de51..9ef92490cc 100755 --- a/app/Http/Controllers/TorrentController.php +++ b/app/Http/Controllers/TorrentController.php @@ -13,6 +13,7 @@ namespace App\Http\Controllers; +use Carbon\Carbon; use App\Models\Peer; use App\Models\Type; use App\Models\User; @@ -20,22 +21,21 @@ use App\Models\Torrent; use App\Models\Warning; use App\Models\Category; -use Carbon\Carbon; +use App\Services\Bencode; +use App\Helpers\MediaInfo; use App\Models\TagTorrent; use App\Models\TorrentFile; +use App\Bots\IRCAnnounceBot; +use Brian2694\Toastr\Toastr; +use Illuminate\Http\Request; +use App\Helpers\TorrentHelper; use App\Models\FreeleechToken; use App\Models\PrivateMessage; use App\Models\TorrentRequest; +use App\Services\TorrentTools; use App\Models\BonTransactions; use App\Models\FeaturedTorrent; -use App\Services\Bencode; -use App\Helpers\MediaInfo; use App\Models\PersonalFreeleech; -use App\Bots\IRCAnnounceBot; -use Brian2694\Toastr\Toastr; -use Illuminate\Http\Request; -use App\Helpers\TorrentHelper; -use App\Services\TorrentTools; use Illuminate\Support\Facades\DB; use App\Repositories\ChatRepository; use App\Notifications\NewReseedRequest; diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 08a8e80739..48484cb56f 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -14,6 +14,8 @@ namespace App\Http\Controllers; use Image; +use ZipArchive; +use Carbon\Carbon; use App\Models\Ban; use App\Models\Peer; use App\Models\Post; @@ -25,22 +27,20 @@ use App\Models\Client; use App\Models\Follow; use App\Models\Invite; -use ZipArchive; use App\Models\History; use App\Models\Torrent; use App\Models\Warning; use App\Models\Bookmark; use App\Models\Graveyard; -use Carbon\Carbon; +use App\Services\Bencode; +use App\UserNotification; use App\Models\UserPrivacy; +use Brian2694\Toastr\Toastr; +use Illuminate\Http\Request; use App\Models\PrivateMessage; use App\Models\TorrentRequest; use App\Models\BonTransactions; -use App\Services\Bencode; -use App\UserNotification; use App\Models\PersonalFreeleech; -use Brian2694\Toastr\Toastr; -use Illuminate\Http\Request; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; diff --git a/app/Http/Middleware/CheckIfOnline.php b/app/Http/Middleware/CheckIfOnline.php index 7ceabc3432..ff4cd258d7 100644 --- a/app/Http/Middleware/CheckIfOnline.php +++ b/app/Http/Middleware/CheckIfOnline.php @@ -14,8 +14,8 @@ namespace App\Http\Middleware; use Closure; -use App\Models\Group; use Carbon\Carbon; +use App\Models\Group; class CheckIfOnline { diff --git a/app/Http/Middleware/SetLanguage.php b/app/Http/Middleware/SetLanguage.php index dad62aab3c..7763fc3c9a 100644 --- a/app/Http/Middleware/SetLanguage.php +++ b/app/Http/Middleware/SetLanguage.php @@ -14,8 +14,8 @@ namespace App\Http\Middleware; use Closure; -use App\Models\Language; use Carbon\Carbon; +use App\Models\Language; use Illuminate\Support\Facades\App; class SetLanguage diff --git a/app/Jobs/ProcessMassPM.php b/app/Jobs/ProcessMassPM.php index a3c2e579ae..62598200ef 100644 --- a/app/Jobs/ProcessMassPM.php +++ b/app/Jobs/ProcessMassPM.php @@ -14,8 +14,8 @@ namespace App\Jobs; -use App\Models\PrivateMessage; use Illuminate\Bus\Queueable; +use App\Models\PrivateMessage; use Illuminate\Queue\SerializesModels; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewBon.php b/app/Notifications/NewBon.php index b7142a4cdb..a0874d7f54 100644 --- a/app/Notifications/NewBon.php +++ b/app/Notifications/NewBon.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\BonTransactions; use Illuminate\Bus\Queueable; +use App\Models\BonTransactions; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestBounty.php b/app/Notifications/NewRequestBounty.php index 97076a89ad..b2e903650d 100644 --- a/app/Notifications/NewRequestBounty.php +++ b/app/Notifications/NewRequestBounty.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestClaim.php b/app/Notifications/NewRequestClaim.php index f625695313..3d16d7b299 100644 --- a/app/Notifications/NewRequestClaim.php +++ b/app/Notifications/NewRequestClaim.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestFill.php b/app/Notifications/NewRequestFill.php index 0c9e6b2570..64462365c2 100644 --- a/app/Notifications/NewRequestFill.php +++ b/app/Notifications/NewRequestFill.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestFillApprove.php b/app/Notifications/NewRequestFillApprove.php index 4294bc5e80..3b4abb9511 100644 --- a/app/Notifications/NewRequestFillApprove.php +++ b/app/Notifications/NewRequestFillApprove.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestFillReject.php b/app/Notifications/NewRequestFillReject.php index b7f6325286..79b366b09d 100644 --- a/app/Notifications/NewRequestFillReject.php +++ b/app/Notifications/NewRequestFillReject.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Notifications/NewRequestUnclaim.php b/app/Notifications/NewRequestUnclaim.php index f25d25a089..80dba56bfe 100644 --- a/app/Notifications/NewRequestUnclaim.php +++ b/app/Notifications/NewRequestUnclaim.php @@ -13,8 +13,8 @@ namespace App\Notifications; -use App\Models\TorrentRequest; use Illuminate\Bus\Queueable; +use App\Models\TorrentRequest; use Illuminate\Notifications\Notification; use Illuminate\Contracts\Queue\ShouldQueue; diff --git a/app/Repositories/ChatRepository.php b/app/Repositories/ChatRepository.php index a7b859c9be..dec30b85be 100644 --- a/app/Repositories/ChatRepository.php +++ b/app/Repositories/ChatRepository.php @@ -14,15 +14,15 @@ namespace App\Repositories; use App\Models\Bot; +use App\Events\Ping; use App\Models\User; +use App\Events\Chatter; use App\Models\Message; use App\Models\Chatroom; use App\Models\UserEcho; use App\Models\ChatStatus; -use App\Events\Ping; -use App\Models\UserAudible; -use App\Events\Chatter; use App\Events\MessageSent; +use App\Models\UserAudible; use App\Events\MessageDeleted; use App\Http\Resources\ChatMessageResource;