|
3 | 3 | namespace Pterodactyl\Http\Controllers\Api\Remote\Servers; |
4 | 4 |
|
5 | 5 | use Cake\Chronos\Chronos; |
6 | | -use Illuminate\Database\ConnectionInterface; |
7 | | -use Illuminate\Http\JsonResponse; |
| 6 | +use Lcobucci\JWT\Builder; |
8 | 7 | use Illuminate\Http\Request; |
| 8 | +use Lcobucci\JWT\Signer\Key; |
9 | 9 | use Illuminate\Http\Response; |
| 10 | +use Illuminate\Http\JsonResponse; |
10 | 11 | use Illuminate\Support\Facades\Log; |
11 | | -use Lcobucci\JWT\Builder; |
12 | 12 | use Lcobucci\JWT\Signer\Hmac\Sha256; |
13 | | -use Lcobucci\JWT\Signer\Key; |
14 | | -use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface; |
15 | | -use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException; |
| 13 | +use Illuminate\Database\ConnectionInterface; |
16 | 14 | use Pterodactyl\Http\Controllers\Controller; |
17 | | -use Pterodactyl\Repositories\Eloquent\ServerRepository; |
| 15 | +use Pterodactyl\Services\Servers\SuspensionService; |
18 | 16 | use Pterodactyl\Repositories\Eloquent\NodeRepository; |
| 17 | +use Pterodactyl\Repositories\Eloquent\ServerRepository; |
19 | 18 | use Pterodactyl\Repositories\Wings\DaemonTransferRepository; |
| 19 | +use Pterodactyl\Contracts\Repository\AllocationRepositoryInterface; |
| 20 | +use Pterodactyl\Exceptions\Http\Connection\DaemonConnectionException; |
20 | 21 | use Pterodactyl\Services\Servers\ServerConfigurationStructureService; |
21 | | -use Pterodactyl\Services\Servers\SuspensionService; |
22 | 22 |
|
23 | 23 | class ServerTransferController extends Controller |
24 | 24 | { |
@@ -102,7 +102,7 @@ public function archive(Request $request, string $uuid) |
102 | 102 | $server = $this->repository->getByUuid($uuid); |
103 | 103 |
|
104 | 104 | // Unsuspend the server and don't continue the transfer. |
105 | | - if (!$request->input('successful')) { |
| 105 | + if (! $request->input('successful')) { |
106 | 106 | $this->suspensionService->toggle($server, 'unsuspend'); |
107 | 107 | return JsonResponse::create([], Response::HTTP_NO_CONTENT); |
108 | 108 | } |
|
0 commit comments