SiteController::actions()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 12
ccs 0
cts 12
cp 0
rs 9.8666
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 6
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