DefaultController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 17
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actions() 0 4 1
A actionIndex() 0 3 1
1
<?php
2
3
namespace app\modules\admin\controllers;
4
5
use yii\web\Controller;
6
use yii\web\ErrorAction;
7
8
/**
9
 * Default controller for the `admin` module
10
 */
11
class DefaultController extends Controller
12
{
13
    public function actions()
14
    {
15
        return [
16
            'error' => ErrorAction::class,
17
        ];
18
    }
19
20
    /**
21
     * Renders the index view for the module
22
     *
23
     * @return string
24
     */
25
    public function actionIndex()
26
    {
27
        return $this->render('index');
28
    }
29
}
30