GalleryAsset::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

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 6
ccs 5
cts 5
cp 1
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
crap 1
1
<?php
2
3
namespace dominus77\lightslider\assets;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class GalleryAsset
9
 * @package dominus77\lightslider\assets
10
 */
11
class GalleryAsset extends AssetBundle
12
{
13
    /**
14
     * @var string
15
     */
16
    public $sourcePath = '@bower/lightgallery/src';
17
18
    /**
19
     * @var array
20
     */
21
    public $css = [];
22
23
    /**
24
     * @var array
25
     */
26
    public $js = [];
27
28
    /**
29
     * @inheritdoc
30
     */
31 2
    public function init()
32
    {
33 2
        parent::init();
34 2
        $this->css = ['css/lightgallery.css'];
35 2
        $this->js = ['js/lightgallery.js'];
36 2
    }
37
38
    /**
39
     * @var array
40
     */
41
    public $depends = [
42
        'yii\web\JqueryAsset'
43
    ];
44
}
45