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

Featured::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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