Apply fixes from StyleCI (#325)

This commit is contained in:
Dane Everitt 2017-02-24 18:23:03 -05:00 committed by GitHub
parent cb6b44d4f0
commit bbf9fd12ae
4 changed files with 5 additions and 5 deletions

View file

@ -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']);
});