DefaultController::actions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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