Completed
Push — master ( 10d1ae...5e8b4d )
by Alexey
05:42
created

AccessController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 11
rs 10
wmc 1
lcom 1
cbo 3

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 7 1
1
<?php
2
3
/**
4
 * Access controller
5
 *
6
 * @author Alexey Krupskiy <[email protected]>
7
 * @link http://inji.ru/
8
 * @copyright 2016 Alexey Krupskiy
9
 * @license https://github.com/injitools/cms-Inji/blob/master/LICENSE
10
 */
11
class AccessController extends adminController
12
{
13
    function indexAction()
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
14
    {
15
        $this->view->setTitle('Настройка доступа к разделам сайта');
16
        $defaultConfig = $this->module->config['access']['accessTree'];
17
        $modules = Module::getInstalled(\App::$cur->primary);
18
        $this->view->page(['data' => compact('modules', 'defaultConfig')]);
19
    }
20
21
}
22