DateRangePickerAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 10
dl 0
loc 27
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 1
1
<?php
2
3
namespace backend\assets\plugins;
4
5
use yii\web\AssetBundle;
6
use yii\web\JqueryAsset;
7
use backend\assets\BootstrapAsset;
8
9
/**
10
 * Class DateRangePickerAsset
11
 * @package backend\assets\plugins
12
 */
13
class DateRangePickerAsset extends AssetBundle
14
{
15
    /**
16
     * @var string
17
     */
18
    public $sourcePath = '@vendor/almasaeed2010/adminlte/bower_components/bootstrap-daterangepicker';
19
20
    /**
21
     * @inheritdoc
22
     */
23
    public function init()
24
    {
25
        parent::init();
26
        $this->css = [
27
            'daterangepicker.css'
28
        ];
29
        $this->js = [
30
            'daterangepicker.js'
31
        ];
32
    }
33
34
    /**
35
     * @var array
36
     */
37
    public $depends = [
38
        JqueryAsset::class,
39
        BootstrapAsset::class
40
    ];
41
}
42