Featured   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
eloc 7
c 0
b 0
f 0
dl 0
loc 18
ccs 0
cts 14
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A run() 0 3 1
A init() 0 4 1
A registerJS() 0 5 1
1
<?php
2
/**
3
 * Sailor theme for hiqdev/yii2-thememanager
4
 *
5
 * @link      https://github.com/hiqdev/yii2-theme-sailor
6
 * @package   yii2-theme-sailor
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\themes\sailor\widgets;
12
13
use hiqdev\themes\sailor\FlexSliderAsset;
14
use yii\base\Widget;
15
16
class Featured extends Widget
17
{
18
    public function init()
19
    {
20
        parent::init();
21
        $this->registerJS();
22
    }
23
24
    public function run()
25
    {
26
        return $this->render('Featured');
27
    }
28
29
    protected function registerJS()
30
    {
31
        $view = $this->getView();
32
        FlexSliderAsset::register($view);
33
        $view->registerJs('
34
        
35
        ');
36
    }
37
}
38