Skip to content

Commit 7c916ad

Browse files
authored
Apply fixes from StyleCI (pterodactyl#294)
1 parent a10e235 commit 7c916ad

21 files changed

+21
-40
lines changed

app/Http/Controllers/API/LocationController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\API;
2626

27-
use DB;
2827
use Illuminate\Http\Request;
2928
use Pterodactyl\Models\Location;
3029

app/Http/Controllers/API/NodeController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function view(Request $request, $id, $fields = null)
138138

139139
$node->allocations->transform(function ($item) {
140140
return collect($item)->only([
141-
'id', 'ip', 'ip_alias', 'port', 'server_id'
141+
'id', 'ip', 'ip_alias', 'port', 'server_id',
142142
]);
143143
});
144144

app/Http/Controllers/API/User/InfoController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\API\User;
2626

27-
use Pterodactyl\Models;
2827
use Illuminate\Http\Request;
2928
use Pterodactyl\Http\Controllers\API\BaseController;
3029

app/Http/Controllers/API/UserController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
use Pterodactyl\Repositories\UserRepository;
3232
use Pterodactyl\Exceptions\DisplayValidationException;
3333
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
34-
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
3534
use Symfony\Component\HttpKernel\Exception\ServiceUnavailableHttpException;
3635

3736
/**

app/Http/Controllers/Admin/DatabaseController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Admin;
2626

27-
use DB;
2827
use Log;
2928
use Alert;
3029
use Pterodactyl\Models;

app/Http/Controllers/Admin/LocationsController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Admin;
2626

27-
use DB;
2827
use Alert;
2928
use Pterodactyl\Models;
3029
use Illuminate\Http\Request;

app/Http/Controllers/Admin/PackController.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Admin;
2626

27-
use DB;
2827
use Log;
2928
use Alert;
3029
use Storage;
@@ -50,7 +49,7 @@ public function listAll(Request $request)
5049
public function listByOption(Request $request, $id)
5150
{
5251
return view('admin.services.packs.byoption', [
53-
'option' => Models\ServiceOptions::with('service', 'packs')->findOrFail($id)
52+
'option' => Models\ServiceOptions::with('service', 'packs')->findOrFail($id),
5453
]);
5554
}
5655

app/Http/Controllers/Admin/ServersController.php

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

2525
namespace Pterodactyl\Http\Controllers\Admin;
2626

27-
use DB;
2827
use Log;
2928
use Alert;
3029
use Pterodactyl\Models;
@@ -62,7 +61,6 @@ public function getNew(Request $request)
6261

6362
public function getView(Request $request, $id)
6463
{
65-
6664
$server = Models\Server::withTrashed()->with(
6765
'user', 'option.variables', 'variables',
6866
'node.allocations', 'databases.host'

app/Http/Controllers/Admin/ServiceController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
namespace Pterodactyl\Http\Controllers\Admin;
2626

27-
use DB;
2827
use Log;
2928
use Alert;
3029
use Storage;

app/Http/Controllers/Admin/UserController.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use Alert;
3030
use Illuminate\Http\Request;
3131
use Pterodactyl\Models\User;
32-
use Pterodactyl\Models\Server;
3332
use Pterodactyl\Exceptions\DisplayException;
3433
use Pterodactyl\Http\Controllers\Controller;
3534
use Pterodactyl\Repositories\UserRepository;

0 commit comments

Comments
 (0)