From 265b69706699a72778c8037132f57affb0045738 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 3 Jun 2017 17:07:50 -0500 Subject: [PATCH] Apply fixes from StyleCI (#471) --- app/Http/Controllers/Server/AjaxController.php | 1 - app/Repositories/Daemon/FileRepository.php | 2 +- app/Repositories/ServerRepository.php | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Server/AjaxController.php b/app/Http/Controllers/Server/AjaxController.php index 08a22508..c22b0c20 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 575cf0a2..e789f746 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 fa0a678f..c13613bf 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,