diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2017-10-08 20:34:32 +0300 |
---|---|---|
committer | StyleCI Bot <bot@styleci.io> | 2017-10-08 20:34:32 +0300 |
commit | 0bdfd52d5691508913ee64141fd098d782316112 (patch) | |
tree | 94af6731aba8646f681c862bd372d62836befecb /src/controllers/ServersController.php | |
parent | edcd19062013badb1653ab8ee5727b3864d3ca56 (diff) |
Apply fixes from StyleCI
[ci skip] [skip ci]
Diffstat (limited to 'src/controllers/ServersController.php')
-rw-r--r-- | src/controllers/ServersController.php | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/controllers/ServersController.php b/src/controllers/ServersController.php index c2c7481a..6fe74b0d 100644 --- a/src/controllers/ServersController.php +++ b/src/controllers/ServersController.php @@ -57,12 +57,10 @@ class ServersController extends BaseController $body->write($server_html); return $this->container->responseobj; } - } public function doDefault($msg = '') { - $lang = $this->lang; $conf = $this->conf; $misc = $this->misc; @@ -137,12 +135,10 @@ class ServersController extends BaseController $actions['logout']['attr']['href']['urlvars']['group'] = $group; } echo $this->printTable($servers, $columns, $actions, $this->table_place, $lang['strnoobjects'], $svPre); - } public function doTree() { - $conf = $this->conf; $misc = $this->misc; @@ -153,7 +149,7 @@ class ServersController extends BaseController if (isset($conf['srv_groups']) and count($conf['srv_groups']) > 0 and $group_id === false) { $nodes = $misc->getServersGroups(true); - } else if (isset($conf['srv_groups']) and $group_id !== false) { + } elseif (isset($conf['srv_groups']) and $group_id !== false) { /* group subtree */ if ($group_id !== 'all') { $nodes = $misc->getServersGroups(false, $group_id); @@ -186,12 +182,10 @@ class ServersController extends BaseController 'section' => $this->section, ]);*/ return $this->printTree($nodes, $attrs, $this->section); - } public function doLogout() { - $plugin_manager = $this->plugin_manager; $lang = $this->lang; $misc = $this->misc; @@ -208,7 +202,5 @@ class ServersController extends BaseController $misc->setReloadBrowser(true); echo sprintf($lang['strlogoutmsg'], $server_info['desc']); - } - } |