DefaultController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 5
dl 0
loc 15
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A actions() 0 5 1
1
<?php
2
3
namespace hauntd\vote\controllers;
4
5
use hauntd\vote\actions\VoteAction;
6
use Yii;
7
use yii\web\Controller;
8
9
/**
10
 * @author Alexander Kononenko <[email protected]>
11
 * @package hauntd\vote\controllers
12
 */
13
class DefaultController extends Controller
14
{
15
    /**
16
     * @var string
17
     */
18
    public $defaultAction = 'vote';
19
20
    /**
21
     * @return array
22
     */
23
    public function actions()
24
    {
25
        return [
26
            'vote' => [
27
                'class' => VoteAction::class,
28
            ]
29
        ];
30
    }
31
}
32