MainController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
c 0
b 0
f 0
lcom 0
cbo 1
dl 0
loc 24
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionIndex() 0 4 1
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