SiteController   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 30
ccs 0
cts 24
cp 0
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A actions() 0 12 2
A actionIndex() 0 4 1
A actionAbout() 0 4 1
A actionContact() 0 4 1
1
<?php
2
/**
3
 * Asset Packagist.
4
 *
5
 * @link      https://github.com/hiqdev/asset-packagist
6
 * @package   asset-packagist
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2016-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\assetpackagist\controllers;
12
13
class SiteController extends \yii\web\Controller
14
{
15
    public function actions()
16
    {
17
        return [
18
            'error' => [
19
                'class' => \yii\web\ErrorAction::class,
20
            ],
21
            'captcha' => [
22
                'class' => \yii\captcha\CaptchaAction::class,
23
                'fixedVerifyCode' => YII_ENV_TEST ? 'testme' : null,
24
            ],
25
        ];
26
    }
27
28
    public function actionIndex()
29
    {
30
        return $this->render('index');
31
    }
32
33
    public function actionAbout()
34
    {
35
        return $this->render('about');
36
    }
37
38
    public function actionContact()
39
    {
40
        return $this->render('contact');
41
    }
42
}
43