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

AccessController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 5
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 7
rs 9.4285
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