Skip to content

Commit bbf9fd1

Browse files
authored
Apply fixes from StyleCI (pterodactyl#325)
1 parent cb6b44d commit bbf9fd1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

app/Http/Controllers/Admin/ServersController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,9 @@ public function postNewServer(Request $request)
128128
public function postNewServerGetNodes(Request $request)
129129
{
130130
$nodes = Models\Node::with('allocations')->where('location_id', $request->input('location'))->get();
131+
131132
return $nodes->map(function ($item) {
132-
$filtered = $item->allocations->where('server_id', null)->map(function($map) {
133+
$filtered = $item->allocations->where('server_id', null)->map(function ($map) {
133134
return collect($map)->only(['id', 'ip', 'port']);
134135
});
135136

app/Http/Middleware/AdminAuthenticate.php

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

2525
namespace Pterodactyl\Http\Middleware;
2626

27-
use Theme;
2827
use Closure;
2928
use Illuminate\Contracts\Auth\Guard;
3029

app/Models/Server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
use Javascript;
3030
use Illuminate\Database\Eloquent\Model;
3131
use Illuminate\Notifications\Notifiable;
32-
use Nicolaslopezj\Searchable\SearchableTrait;
3332
use Illuminate\Database\Eloquent\SoftDeletes;
33+
use Nicolaslopezj\Searchable\SearchableTrait;
3434

3535
class Server extends Model
3636
{
@@ -86,7 +86,7 @@ class Server extends Model
8686
'installed' => 'integer',
8787
];
8888

89-
protected $searchable = [
89+
protected $searchable = [
9090
'columns' => [
9191
'servers.name' => 10,
9292
'servers.username' => 10,

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function create(array $data)
268268

269269
// Add Additional Allocations
270270
if (isset($data['allocation_additional']) && is_array($data['allocation_additional'])) {
271-
foreach($data['allocation_additional'] as $allocation) {
271+
foreach ($data['allocation_additional'] as $allocation) {
272272
$model = Models\Allocation::where('id', $allocation)->where('node_id', $data['node_id'])->whereNull('server_id')->first();
273273
if (! $model) {
274274
continue;

0 commit comments

Comments
 (0)