Completed
Push — master ( a9126d...fd4b42 )
by Klochok
03:06
created

Featured   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 3
dl 0
loc 23
c 0
b 0
f 0
ccs 0
cts 11
cp 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
A run() 0 4 1
A registerJS() 0 8 1
1
<?php
2
3
namespace hiqdev\themes\sailor\widgets;
4
5
use hiqdev\themes\sailor\FlexSliderAsset;
6
use yii\base\Widget;
7
8
class Featured extends Widget
9
{
10
11
    public function init()
12
    {
13
        parent::init();
14
        $this->registerJS();
15
    }
16
17
    public function run()
18
    {
19
        return $this->render('Featured');
20
    }
21
22
    protected function registerJS()
23
    {
24
        $view = $this->getView();
25
        FlexSliderAsset::register($view);
26
        $view->registerJs("
27
        
28
        ");
29
    }
30
}
31