TestController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 15
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A actionTest() 0 4 1
A getViewPath() 0 4 1
1
<?php
2
/**
3
 * @link https://github.com/vuongxuongminh/yii2-mobile-first
4
 * @copyright Copyright (c) 2019 Vuong Xuong Minh
5
 * @license [New BSD License](http://www.opensource.org/licenses/bsd-license.php)
6
 */
7
8
namespace vxm\test\unit\mobileFirst;
9
10
use yii\web\Controller;
11
12
/**
13
 * Class TestController
14
 *
15
 * @author Vuong Minh <[email protected]>
16
 * @since 1.0.0
17
 */
18
class TestController extends Controller
19
{
20
21
    public $enableCsrfValidation = false;
22
23
    public function actionTest()
24
    {
25
        return $this->renderPartial('test');
26
    }
27
28
    public function getViewPath()
29
    {
30
        return __DIR__ . '/views';
31
    }
32
}
33