FastClickAsset   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 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 FastClickAsset
11
 * @package backend\assets\plugins
12
 */
13
class FastClickAsset extends AssetBundle
14
{
15
    /**
16
     * @var string
17
     */
18
    public $sourcePath = '@vendor/almasaeed2010/adminlte/bower_components/fastclick/lib';
19
20
    /**
21
     * @inheritdoc
22
     */
23
    public function init()
24
    {
25
        parent::init();
26
        $this->js = ['fastclick.js'];
27
    }
28
29
    /**
30
     * @var array
31
     */
32
    public $depends = [
33
        JqueryAsset::class,
34
        BootstrapAsset::class
35
    ];
36
}
37