Completed
Push — master ( 32412c...4a6135 )
by Andrii
03:09
created

CommonController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A actionPerform() 0 7 1
1
<?php
2
3
/*
4
 * Task runner, code generator and build tool for easier continuos integration
5
 *
6
 * @link      https://github.com/hiqdev/hidev
7
 * @package   hidev
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hidev\controllers;
13
14
use Yii;
15
16
/**
17
 * Common controller.
18
 */
19
class CommonController extends AbstractController
20
{
21
    public $performName;
22
    public $performPath;
23
24 3
    public function actionPerform($name = null, $path = null)
25
    {
26 3
        $this->performName = $name;
27 3
        $this->performPath = $path;
28 3
        Yii::trace("Started: '$this->id'");
29 3
        return $this->perform();
30
    }
31
}
32