Completed
Push — master ( 1c947e...bdc0fb )
by Dmitry
02:52
created

SiteController   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

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