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

CommonController::actionPerform()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

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