File tree Expand file tree Collapse file tree 12 files changed +56
-56
lines changed
Expand file tree Collapse file tree 12 files changed +56
-56
lines changed Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Http \Controllers \Server \Files ;
2626
27- use GuzzleHttp \Exception \RequestException ;
28- use Illuminate \Contracts \Session \Session ;
29- use Illuminate \Http \Request ;
3027use Illuminate \Log \Writer ;
31- use Pterodactyl \Contracts \Repository \Daemon \FileRepositoryInterface ;
28+ use Illuminate \Http \Request ;
29+ use Illuminate \Contracts \Session \Session ;
30+ use GuzzleHttp \Exception \RequestException ;
3231use Pterodactyl \Exceptions \DisplayException ;
3332use Pterodactyl \Http \Controllers \Controller ;
34- use Pterodactyl \Http \Requests \Server \UpdateFileContentsFormRequest ;
3533use Pterodactyl \Traits \Controllers \JavascriptInjection ;
34+ use Pterodactyl \Http \Requests \Server \UpdateFileContentsFormRequest ;
35+ use Pterodactyl \Contracts \Repository \Daemon \FileRepositoryInterface ;
3636
3737class FileActionsController extends Controller
3838{
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Http \Controllers \Server \Files ;
2626
27+ use Illuminate \Log \Writer ;
28+ use Illuminate \Http \Request ;
29+ use Illuminate \Contracts \Session \Session ;
2730use GuzzleHttp \Exception \RequestException ;
31+ use Pterodactyl \Http \Controllers \Controller ;
2832use Illuminate \Contracts \Config \Repository as ConfigRepository ;
29- use Illuminate \Contracts \Session \Session ;
30- use Illuminate \Http \Request ;
31- use Illuminate \Log \Writer ;
3233use Pterodactyl \Contracts \Repository \Daemon \FileRepositoryInterface ;
33- use Pterodactyl \Http \Controllers \Controller ;
3434
3535class RemoteRequestController extends Controller
3636{
Original file line number Diff line number Diff line change 2525namespace Pterodactyl \Http \Middleware ;
2626
2727use Closure ;
28- use Illuminate \Contracts \Session \Session ;
2928use Illuminate \Http \Request ;
30- use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
3129use Pterodactyl \Models \Server ;
32- use Illuminate \Contracts \Config \ Repository as ConfigRepository ;
30+ use Illuminate \Contracts \Session \ Session ;
3331use Illuminate \Auth \AuthenticationException ;
32+ use Illuminate \Contracts \Config \Repository as ConfigRepository ;
33+ use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
3434use Symfony \Component \HttpKernel \Exception \NotFoundHttpException ;
3535use Symfony \Component \HttpKernel \Exception \AccessDeniedHttpException ;
3636
Original file line number Diff line number Diff line change 2525namespace Pterodactyl \Http \Middleware ;
2626
2727use Closure ;
28- use Illuminate \Auth \AuthenticationException ;
29- use Illuminate \Contracts \Session \Session ;
3028use Illuminate \Http \Request ;
31- use Pterodactyl \Exceptions \Service \Server \UserNotLinkedToServerException ;
29+ use Illuminate \Contracts \Session \Session ;
30+ use Illuminate \Auth \AuthenticationException ;
3231use Pterodactyl \Services \Servers \ServerAccessHelperService ;
32+ use Pterodactyl \Exceptions \Service \Server \UserNotLinkedToServerException ;
3333
3434class SubuserAccessAuthenticate
3535{
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Http \Requests \Server ;
2626
27+ use Illuminate \Log \Writer ;
28+ use Illuminate \Contracts \Session \Session ;
2729use GuzzleHttp \Exception \RequestException ;
2830use Illuminate \Contracts \Config \Repository ;
29- use Illuminate \Contracts \Session \Session ;
30- use Illuminate \Log \Writer ;
3131use Pterodactyl \Exceptions \DisplayException ;
32- use Pterodactyl \Exceptions \Http \Server \FileSizeTooLargeException ;
33- use Pterodactyl \Exceptions \Http \Server \FileTypeNotEditableException ;
3432use Pterodactyl \Http \Requests \FrontendUserFormRequest ;
33+ use Pterodactyl \Exceptions \Http \Server \FileSizeTooLargeException ;
3534use Pterodactyl \Contracts \Repository \Daemon \FileRepositoryInterface ;
35+ use Pterodactyl \Exceptions \Http \Server \FileTypeNotEditableException ;
3636
3737class UpdateFileContentsFormRequest extends FrontendUserFormRequest
3838{
Original file line number Diff line number Diff line change 2424
2525namespace Pterodactyl \Services \Servers ;
2626
27- use Pterodactyl \Exceptions \Service \Server \UserNotLinkedToServerException ;
28- use Pterodactyl \Models \Server ;
2927use Pterodactyl \Models \User ;
28+ use Pterodactyl \Models \Server ;
3029use Illuminate \Cache \Repository as CacheRepository ;
3130use Pterodactyl \Contracts \Repository \UserRepositoryInterface ;
3231use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
3332use Pterodactyl \Contracts \Repository \SubuserRepositoryInterface ;
33+ use Pterodactyl \Exceptions \Service \Server \UserNotLinkedToServerException ;
3434
3535class ServerAccessHelperService
3636{
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Assertions ;
2626
27- use Illuminate \Http \JsonResponse ;
28- use Illuminate \Http \Response ;
2927use Illuminate \View \View ;
28+ use Illuminate \Http \Response ;
3029use PHPUnit_Framework_Assert ;
30+ use Illuminate \Http \JsonResponse ;
3131use Illuminate \Http \RedirectResponse ;
3232
3333trait ControllerAssertionsTrait
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Unit \Http \Controllers \Base ;
2626
27- use Illuminate \Http \Request ;
2827use Mockery as m ;
29- use Pterodactyl \Contracts \Repository \Daemon \ServerRepositoryInterface as DaemonServerRepositoryInterface ;
30- use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
31- use Pterodactyl \Http \Controllers \Base \IndexController ;
32- use Pterodactyl \Models \Server ;
28+ use Tests \TestCase ;
29+ use Illuminate \Http \Request ;
3330use Pterodactyl \Models \User ;
34- use Pterodactyl \Services \ Servers \ ServerAccessHelperService ;
31+ use Pterodactyl \Models \ Server ;
3532use Tests \Assertions \ControllerAssertionsTrait ;
36- use Tests \TestCase ;
33+ use Pterodactyl \Http \Controllers \Base \IndexController ;
34+ use Pterodactyl \Services \Servers \ServerAccessHelperService ;
35+ use Pterodactyl \Contracts \Repository \ServerRepositoryInterface ;
36+ use Pterodactyl \Contracts \Repository \Daemon \ServerRepositoryInterface as DaemonServerRepositoryInterface ;
3737
3838class IndexControllerTest extends TestCase
3939{
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Unit \Http \Controllers \Base ;
2626
27- use Illuminate \Contracts \Config \Repository ;
28- use Illuminate \Contracts \Session \Session ;
29- use Illuminate \Http \Request ;
3027use Mockery as m ;
28+ use Tests \TestCase ;
29+ use Illuminate \Http \Request ;
30+ use Pterodactyl \Models \User ;
3131use Prologue \Alerts \AlertsMessageBag ;
32+ use Illuminate \Contracts \Session \Session ;
33+ use Illuminate \Contracts \Config \Repository ;
34+ use Tests \Assertions \ControllerAssertionsTrait ;
35+ use Pterodactyl \Services \Users \TwoFactorSetupService ;
36+ use Pterodactyl \Services \Users \ToggleTwoFactorService ;
37+ use Pterodactyl \Http \Controllers \Base \SecurityController ;
3238use Pterodactyl \Contracts \Repository \SessionRepositoryInterface ;
3339use Pterodactyl \Exceptions \Service \User \TwoFactorAuthenticationTokenInvalid ;
34- use Pterodactyl \Http \Controllers \Base \SecurityController ;
35- use Pterodactyl \Models \User ;
36- use Pterodactyl \Services \Users \ToggleTwoFactorService ;
37- use Pterodactyl \Services \Users \TwoFactorSetupService ;
38- use Tests \Assertions \ControllerAssertionsTrait ;
39- use Tests \TestCase ;
4040
4141class SecurityControllerTest extends TestCase
4242{
Original file line number Diff line number Diff line change 2424
2525namespace Tests \Unit \Http \Controllers \Server ;
2626
27- use Illuminate \Contracts \Session \Session ;
2827use Mockery as m ;
29- use Pterodactyl \Http \Controllers \Server \ConsoleController ;
30- use Pterodactyl \Models \Server ;
31- use Tests \Assertions \ControllerAssertionsTrait ;
3228use Tests \TestCase ;
29+ use Pterodactyl \Models \Server ;
30+ use Illuminate \Contracts \Session \Session ;
3331use Illuminate \Contracts \Config \Repository ;
32+ use Tests \Assertions \ControllerAssertionsTrait ;
33+ use Pterodactyl \Http \Controllers \Server \ConsoleController ;
3434
3535class ConsoleControllerTest extends TestCase
3636{
You can’t perform that action at this time.
0 commit comments