From a0900b8b94612b72df513843e8b13795d94742e5 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Thu, 21 May 2020 13:22:32 -0600 Subject: [PATCH] Fix StyleCI issues --- app/Http/Controllers/Admin/MountController.php | 2 ++ app/Http/Controllers/Admin/Servers/ServerViewController.php | 2 +- app/Repositories/Eloquent/MountRepository.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/MountController.php b/app/Http/Controllers/Admin/MountController.php index 945835293..2badebe16 100644 --- a/app/Http/Controllers/Admin/MountController.php +++ b/app/Http/Controllers/Admin/MountController.php @@ -233,6 +233,7 @@ class MountController extends Controller public function deleteEgg(Mount $mount, int $egg_id) { $mount->eggs()->detach($egg_id); + return response('', 204); } @@ -246,6 +247,7 @@ class MountController extends Controller public function deleteNode(Mount $mount, int $node_id) { $mount->nodes()->detach($node_id); + return response('', 204); } } diff --git a/app/Http/Controllers/Admin/Servers/ServerViewController.php b/app/Http/Controllers/Admin/Servers/ServerViewController.php index 5706850a1..acec1cdba 100644 --- a/app/Http/Controllers/Admin/Servers/ServerViewController.php +++ b/app/Http/Controllers/Admin/Servers/ServerViewController.php @@ -9,9 +9,9 @@ use Pterodactyl\Models\Server; use Illuminate\Contracts\View\Factory; use Pterodactyl\Exceptions\DisplayException; use Pterodactyl\Http\Controllers\Controller; -use Pterodactyl\Repositories\Eloquent\MountRepository; use Pterodactyl\Repositories\Eloquent\NestRepository; use Pterodactyl\Repositories\Eloquent\NodeRepository; +use Pterodactyl\Repositories\Eloquent\MountRepository; use Pterodactyl\Repositories\Eloquent\ServerRepository; use Pterodactyl\Traits\Controllers\JavascriptInjection; use Pterodactyl\Repositories\Eloquent\LocationRepository; diff --git a/app/Repositories/Eloquent/MountRepository.php b/app/Repositories/Eloquent/MountRepository.php index f12b876d1..d6055203c 100644 --- a/app/Repositories/Eloquent/MountRepository.php +++ b/app/Repositories/Eloquent/MountRepository.php @@ -3,8 +3,8 @@ namespace Pterodactyl\Repositories\Eloquent; use Pterodactyl\Models\Mount; -use Illuminate\Support\Collection; use Pterodactyl\Models\Server; +use Illuminate\Support\Collection; use Pterodactyl\Repositories\Concerns\Searchable; use Illuminate\Database\Eloquent\ModelNotFoundException; use Pterodactyl\Exceptions\Repository\RecordNotFoundException;