Skip to content

Commit 7222754

Browse files
committed
Merge branch 'develop' of https://github.com/Pterodactyl/Panel into develop
2 parents b12f6f1 + aebb7c6 commit 7222754

File tree

12 files changed

+56
-56
lines changed

12 files changed

+56
-56
lines changed

app/Http/Controllers/Server/Files/FileActionsController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Server\Files;
2626

27-
use GuzzleHttp\Exception\RequestException;
28-
use Illuminate\Contracts\Session\Session;
29-
use Illuminate\Http\Request;
3027
use 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;
3231
use Pterodactyl\Exceptions\DisplayException;
3332
use Pterodactyl\Http\Controllers\Controller;
34-
use Pterodactyl\Http\Requests\Server\UpdateFileContentsFormRequest;
3533
use Pterodactyl\Traits\Controllers\JavascriptInjection;
34+
use Pterodactyl\Http\Requests\Server\UpdateFileContentsFormRequest;
35+
use Pterodactyl\Contracts\Repository\Daemon\FileRepositoryInterface;
3636

3737
class FileActionsController extends Controller
3838
{

app/Http/Controllers/Server/Files/RemoteRequestController.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Server\Files;
2626

27+
use Illuminate\Log\Writer;
28+
use Illuminate\Http\Request;
29+
use Illuminate\Contracts\Session\Session;
2730
use GuzzleHttp\Exception\RequestException;
31+
use Pterodactyl\Http\Controllers\Controller;
2832
use Illuminate\Contracts\Config\Repository as ConfigRepository;
29-
use Illuminate\Contracts\Session\Session;
30-
use Illuminate\Http\Request;
31-
use Illuminate\Log\Writer;
3233
use Pterodactyl\Contracts\Repository\Daemon\FileRepositoryInterface;
33-
use Pterodactyl\Http\Controllers\Controller;
3434

3535
class RemoteRequestController extends Controller
3636
{

app/Http/Middleware/ServerAuthenticate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
namespace Pterodactyl\Http\Middleware;
2626

2727
use Closure;
28-
use Illuminate\Contracts\Session\Session;
2928
use Illuminate\Http\Request;
30-
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
3129
use Pterodactyl\Models\Server;
32-
use Illuminate\Contracts\Config\Repository as ConfigRepository;
30+
use Illuminate\Contracts\Session\Session;
3331
use Illuminate\Auth\AuthenticationException;
32+
use Illuminate\Contracts\Config\Repository as ConfigRepository;
33+
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
3434
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
3535
use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException;
3636

app/Http/Middleware/SubuserAccessAuthenticate.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
namespace Pterodactyl\Http\Middleware;
2626

2727
use Closure;
28-
use Illuminate\Auth\AuthenticationException;
29-
use Illuminate\Contracts\Session\Session;
3028
use Illuminate\Http\Request;
31-
use Pterodactyl\Exceptions\Service\Server\UserNotLinkedToServerException;
29+
use Illuminate\Contracts\Session\Session;
30+
use Illuminate\Auth\AuthenticationException;
3231
use Pterodactyl\Services\Servers\ServerAccessHelperService;
32+
use Pterodactyl\Exceptions\Service\Server\UserNotLinkedToServerException;
3333

3434
class SubuserAccessAuthenticate
3535
{

app/Http/Requests/Server/UpdateFileContentsFormRequest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,15 @@
2424

2525
namespace Pterodactyl\Http\Requests\Server;
2626

27+
use Illuminate\Log\Writer;
28+
use Illuminate\Contracts\Session\Session;
2729
use GuzzleHttp\Exception\RequestException;
2830
use Illuminate\Contracts\Config\Repository;
29-
use Illuminate\Contracts\Session\Session;
30-
use Illuminate\Log\Writer;
3131
use Pterodactyl\Exceptions\DisplayException;
32-
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
33-
use Pterodactyl\Exceptions\Http\Server\FileTypeNotEditableException;
3432
use Pterodactyl\Http\Requests\FrontendUserFormRequest;
33+
use Pterodactyl\Exceptions\Http\Server\FileSizeTooLargeException;
3534
use Pterodactyl\Contracts\Repository\Daemon\FileRepositoryInterface;
35+
use Pterodactyl\Exceptions\Http\Server\FileTypeNotEditableException;
3636

3737
class UpdateFileContentsFormRequest extends FrontendUserFormRequest
3838
{

app/Services/Servers/ServerAccessHelperService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
namespace Pterodactyl\Services\Servers;
2626

27-
use Pterodactyl\Exceptions\Service\Server\UserNotLinkedToServerException;
28-
use Pterodactyl\Models\Server;
2927
use Pterodactyl\Models\User;
28+
use Pterodactyl\Models\Server;
3029
use Illuminate\Cache\Repository as CacheRepository;
3130
use Pterodactyl\Contracts\Repository\UserRepositoryInterface;
3231
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
3332
use Pterodactyl\Contracts\Repository\SubuserRepositoryInterface;
33+
use Pterodactyl\Exceptions\Service\Server\UserNotLinkedToServerException;
3434

3535
class ServerAccessHelperService
3636
{

tests/Assertions/ControllerAssertionsTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424

2525
namespace Tests\Assertions;
2626

27-
use Illuminate\Http\JsonResponse;
28-
use Illuminate\Http\Response;
2927
use Illuminate\View\View;
28+
use Illuminate\Http\Response;
3029
use PHPUnit_Framework_Assert;
30+
use Illuminate\Http\JsonResponse;
3131
use Illuminate\Http\RedirectResponse;
3232

3333
trait ControllerAssertionsTrait

tests/Unit/Http/Controllers/Base/IndexControllerTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,16 @@
2424

2525
namespace Tests\Unit\Http\Controllers\Base;
2626

27-
use Illuminate\Http\Request;
2827
use 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;
3330
use Pterodactyl\Models\User;
34-
use Pterodactyl\Services\Servers\ServerAccessHelperService;
31+
use Pterodactyl\Models\Server;
3532
use 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

3838
class IndexControllerTest extends TestCase
3939
{

tests/Unit/Http/Controllers/Base/SecurityControllerTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,19 @@
2424

2525
namespace Tests\Unit\Http\Controllers\Base;
2626

27-
use Illuminate\Contracts\Config\Repository;
28-
use Illuminate\Contracts\Session\Session;
29-
use Illuminate\Http\Request;
3027
use Mockery as m;
28+
use Tests\TestCase;
29+
use Illuminate\Http\Request;
30+
use Pterodactyl\Models\User;
3131
use 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;
3238
use Pterodactyl\Contracts\Repository\SessionRepositoryInterface;
3339
use 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

4141
class SecurityControllerTest extends TestCase
4242
{

tests/Unit/Http/Controllers/Server/ConsoleControllerTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@
2424

2525
namespace Tests\Unit\Http\Controllers\Server;
2626

27-
use Illuminate\Contracts\Session\Session;
2827
use Mockery as m;
29-
use Pterodactyl\Http\Controllers\Server\ConsoleController;
30-
use Pterodactyl\Models\Server;
31-
use Tests\Assertions\ControllerAssertionsTrait;
3228
use Tests\TestCase;
29+
use Pterodactyl\Models\Server;
30+
use Illuminate\Contracts\Session\Session;
3331
use Illuminate\Contracts\Config\Repository;
32+
use Tests\Assertions\ControllerAssertionsTrait;
33+
use Pterodactyl\Http\Controllers\Server\ConsoleController;
3434

3535
class ConsoleControllerTest extends TestCase
3636
{

0 commit comments

Comments
 (0)