Completed
Push — master ( f419fa...392041 )
by Alexey
03:08
created

GalleryAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 34
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 6 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
    public function init()
32
    {
33
        parent::init();
34
        $this->css = ['css/lightgallery.css'];
35
        $this->js = ['js/lightgallery.js'];
36
    }
37
38
    /**
39
     * @var array
40
     */
41
    public $depends = [
42
        'yii\web\JqueryAsset'
43
    ];
44
}
45