mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-09 18:03:44 +02:00
Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
a1d3bbf73d
commit
c1fb0a665f
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* Pterodactyl - Panel
|
||||
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>
|
||||
* Copyright (c) 2015 - 2016 Dane Everitt <dane@daneeveritt.com>.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
@@ -21,13 +21,11 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
namespace Pterodactyl\Http\Controllers\API\User;
|
||||
|
||||
use Auth;
|
||||
use Dingo;
|
||||
use Pterodactyl\Models;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use Pterodactyl\Http\Controllers\API\BaseController;
|
||||
|
||||
class InfoController extends BaseController
|
||||
@@ -37,7 +35,7 @@ class InfoController extends BaseController
|
||||
$servers = Models\Server::getUserServers();
|
||||
$response = [];
|
||||
|
||||
foreach($servers as &$server) {
|
||||
foreach ($servers as &$server) {
|
||||
$response = array_merge($response, [[
|
||||
'id' => $server->uuidShort,
|
||||
'uuid' => $server->uuid,
|
||||
@@ -45,11 +43,11 @@ class InfoController extends BaseController
|
||||
'node' => $server->nodeName,
|
||||
'ip' => [
|
||||
'set' => $server->ip,
|
||||
'alias' => $server->ip_alias
|
||||
'alias' => $server->ip_alias,
|
||||
],
|
||||
'port' => $server->port,
|
||||
'service' => $server->a_serviceName,
|
||||
'option' => $server->a_serviceOptionName
|
||||
'option' => $server->a_serviceOptionName,
|
||||
]]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user