MainController::actionIndex()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace app\controllers;
4
5
/**
6
 * MainController implements homepage actions.
7
 */
8
class MainController extends BaseController
9
{
10
    /**
11
     * {@inheritdoc}
12
     */
13
    public function actions()
14
    {
15
        return [
16
            'error' => [
17
                'class' => 'yii\web\ErrorAction',
18
            ],
19
        ];
20
    }
21
22
    /**
23
     * Display homepage.
24
     *
25
     * @return string
26
     */
27
    public function actionIndex()
28
    {
29
        return $this->render('index');
30
    }
31
}
32