Completed
Push — master ( 8e919b...76847d )
by Andrii
03:06
created

CommonController::actionPerform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 8
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 5
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * Automation tool mixed with code generator for easier continuous development.
4
 *
5
 * @link      https://github.com/hiqdev/hidev
6
 * @package   hidev
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\controllers;
12
13
use Yii;
14
15
/**
16
 * Common controller.
17
 */
18
class CommonController extends AbstractController
19
{
20
    public $performName;
21
    public $performPath;
22
23 2
    public function actionPerform($name = null, $path = null)
24
    {
25 2
        $this->performName = $name;
26 2
        $this->performPath = $path;
27 2
        Yii::trace("Started: '$this->id'");
28
29 2
        return $this->perform();
30
    }
31
}
32