mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Apply fixes from StyleCI (#325)
This commit is contained in:
@@ -128,8 +128,9 @@ class ServersController extends Controller
|
||||
public function postNewServerGetNodes(Request $request)
|
||||
{
|
||||
$nodes = Models\Node::with('allocations')->where('location_id', $request->input('location'))->get();
|
||||
|
||||
return $nodes->map(function ($item) {
|
||||
$filtered = $item->allocations->where('server_id', null)->map(function($map) {
|
||||
$filtered = $item->allocations->where('server_id', null)->map(function ($map) {
|
||||
return collect($map)->only(['id', 'ip', 'port']);
|
||||
});
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
|
||||
namespace Pterodactyl\Http\Middleware;
|
||||
|
||||
use Theme;
|
||||
use Closure;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user