diff --git a/app/Http/Controllers/Server/AjaxController.php b/app/Http/Controllers/Server/AjaxController.php index 08a225083..c22b0c202 100644 --- a/app/Http/Controllers/Server/AjaxController.php +++ b/app/Http/Controllers/Server/AjaxController.php @@ -28,7 +28,6 @@ use Log; use Pterodactyl\Models; use Illuminate\Http\Request; use Pterodactyl\Repositories; -use GuzzleHttp\Exception\RequestException; use Pterodactyl\Exceptions\DisplayException; use Pterodactyl\Http\Controllers\Controller; use Pterodactyl\Exceptions\DisplayValidationException; diff --git a/app/Repositories/Daemon/FileRepository.php b/app/Repositories/Daemon/FileRepository.php index 575cf0a29..e789f7469 100644 --- a/app/Repositories/Daemon/FileRepository.php +++ b/app/Repositories/Daemon/FileRepository.php @@ -146,7 +146,7 @@ class FileRepository try { $res = $this->server->guzzleClient()->request('GET', '/server/directory/' . rawurlencode($directory)); - } catch(\GuzzleHttp\Exception\ClientException $ex) { + } catch (\GuzzleHttp\Exception\ClientException $ex) { $json = json_decode($ex->getResponse()->getBody()); throw new DisplayException($json->error); diff --git a/app/Repositories/ServerRepository.php b/app/Repositories/ServerRepository.php index fa0a678fa..c13613bfd 100644 --- a/app/Repositories/ServerRepository.php +++ b/app/Repositories/ServerRepository.php @@ -724,7 +724,7 @@ class ServerRepository $allocations = $server->allocations->where('id', '!=', $server->allocation_id); $i = 0; - foreach($allocations as $allocation) { + foreach ($allocations as $allocation) { $merge[] = [ 'variable' => 'ALLOC_' . $i . '__PORT', 'value' => $allocation->port,