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

SiteController::actionSearch()   A

Complexity

Conditions 3
Paths 5

Size

Total Lines 17
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 12

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 17
rs 9.4285
c 1
b 0
f 0
ccs 0
cts 12
cp 0
cc 3
eloc 10
nc 5
nop 1
crap 12
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