diff options
author | amenadiel <amenadiel@gmail.com> | 2017-07-30 23:57:26 +0300 |
---|---|---|
committer | amenadiel <amenadiel@gmail.com> | 2017-07-30 23:57:26 +0300 |
commit | 1214528e76de7d86c8ba2cecbc16cdb539057e38 (patch) | |
tree | f5b72c0757a39c3cc16afe81479d2512dca47148 /src/controllers/BrowserController.php | |
parent | e7360df674b30e42c2f9d472f6a40398aa04e44a (diff) |
apply new rules of php.tools.ini
Diffstat (limited to 'src/controllers/BrowserController.php')
-rw-r--r-- | src/controllers/BrowserController.php | 80 |
1 files changed, 42 insertions, 38 deletions
diff --git a/src/controllers/BrowserController.php b/src/controllers/BrowserController.php index 8b6ec841..94eea7e9 100644 --- a/src/controllers/BrowserController.php +++ b/src/controllers/BrowserController.php @@ -5,42 +5,46 @@ namespace PHPPgAdmin\Controller; /** * Base controller class */ -class BrowserController extends BaseController { - public $_name = 'BrowserController'; - - /* Constructor */ - function __construct(\Slim\Container $container) { - $this->misc = $container->get('misc'); - - $this->misc->setNoDBConnection(true); - $this->misc->setNoBottomLink(true); - - parent::__construct($container); - } - public function render() { - $conf = $this->conf; - $misc = $this->misc; - $lang = $this->lang; - - $viewVars = $this->lang; - $viewVars['appName'] = $this->misc->appName; - $viewVars['icon'] = [ - 'blank' => $this->misc->icon('blank'), - 'I' => $this->misc->icon('I'), - 'L' => $this->misc->icon('L'), - 'Lminus' => $this->misc->icon('Lminus'), - 'Loading' => $this->misc->icon('Loading'), - 'Lplus' => $this->misc->icon('Lplus'), - 'ObjectNotFound' => $this->misc->icon('ObjectNotFound'), - 'Refresh' => $this->misc->icon('Refresh'), - 'Servers' => $this->misc->icon('Servers'), - 'T' => $this->misc->icon('T'), - 'Tminus' => $this->misc->icon('Tminus'), - 'Tplus' => $this->misc->icon('Tplus'), - - ]; - - echo $this->view->fetch('browser.twig', $viewVars); - - } +class BrowserController extends BaseController +{ + public $_name = 'BrowserController'; + + /* Constructor */ + public function __construct(\Slim\Container $container) + { + $this->misc = $container->get('misc'); + + $this->misc->setNoDBConnection(true); + $this->misc->setNoBottomLink(true); + + parent::__construct($container); + } + + public function render() + { + $conf = $this->conf; + $misc = $this->misc; + $lang = $this->lang; + + $viewVars = $this->lang; + $viewVars['appName'] = $this->misc->appName; + $viewVars['icon'] = [ + 'blank' => $this->misc->icon('blank'), + 'I' => $this->misc->icon('I'), + 'L' => $this->misc->icon('L'), + 'Lminus' => $this->misc->icon('Lminus'), + 'Loading' => $this->misc->icon('Loading'), + 'Lplus' => $this->misc->icon('Lplus'), + 'ObjectNotFound' => $this->misc->icon('ObjectNotFound'), + 'Refresh' => $this->misc->icon('Refresh'), + 'Servers' => $this->misc->icon('Servers'), + 'T' => $this->misc->icon('T'), + 'Tminus' => $this->misc->icon('Tminus'), + 'Tplus' => $this->misc->icon('Tplus'), + + ]; + + echo $this->view->fetch('browser.twig', $viewVars); + + } } |