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

SiteController::behaviors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 9.4285
c 0
b 0
f 0
ccs 0
cts 10
cp 0
cc 1
eloc 6
nc 1
nop 0
crap 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A SiteController::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