Passed
Push — master ( 442876...4ec1bc )
by Felipe
15:55 queued 10:33
created

BrowserController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
B render() 0 24 1
1
<?php
2
0 ignored issues
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
3
/*
4
 * PHPPgAdmin v6.0.0-beta.30
5
 */
6
7
namespace PHPPgAdmin\Controller;
8
9
/**
10
 * Base controller class.
11
 */
5 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
12
class BrowserController extends BaseController
13
{
14
    public $controller_name = 'BrowserController';
15
16
    /**
17
     * Default method to render the controller according to the action parameter.
18
     */
19
    public function render()
20
    {
21
        $lang = $this->lang;
0 ignored issues
show
Unused Code introduced by
The assignment to $lang is dead and can be removed.
Loading history...
22
23
        $this->misc->setNoDBConnection(true);
24
25
        $this->setNoBottomLink(true);
26
27
        $viewVars = ['icon' => [
28
            'blank'          => $this->misc->icon('blank'),
29
            'I'              => $this->misc->icon('I'),
30
            'L'              => $this->misc->icon('L'),
31
            'Lminus'         => $this->misc->icon('Lminus'),
32
            'Loading'        => $this->misc->icon('Loading'),
33
            'Lplus'          => $this->misc->icon('Lplus'),
34
            'ObjectNotFound' => $this->misc->icon('ObjectNotFound'),
35
            'Refresh'        => $this->misc->icon('Refresh'),
36
            'Servers'        => $this->misc->icon('Servers'),
37
            'T'              => $this->misc->icon('T'),
38
            'Tminus'         => $this->misc->icon('Tminus'),
39
            'Tplus'          => $this->misc->icon('Tplus'),
40
        ]];
41
42
        echo $this->view->fetch('browser.twig', $viewVars);
43
    }
44
}
45