Completed
Push — master ( 704b82...39f57e )
by Wilmer
03:00
created

CdnRegularJsAsset   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 8
c 1
b 0
f 0
dl 0
loc 23
ccs 4
cts 4
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 5 1
1
<?php
2
3
namespace terabytesoft\assets\fontawesome\cdn;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * CdnRegularJsAsset
9
 *
10
 * The asset font awesome free regular js svgfont content delivery network
11
 **/
12
class CdnRegularJsAsset extends AssetBundle
13
{
14
    /**
15
     * @var array $depends
16
     */
17
    public $depends = [
18
        \terabytesoft\assets\fontawesome\cdn\CdnFontAwesomeJsAsset::class,
19
        \terabytesoft\assets\fontawesome\cdn\CdnUtilitiesJsAsset::class,
20
    ];
21
22
    /**
23
     * @var array $js
24
     */
25
    public $js = [];
26
27
    /**
28
     * init
29
     */
30 2
    public function init(): void
31
    {
32 2
        parent::init();
33 2
        $this->js[] = [
34 2
            \Yii::$app->params['asset.fontawesome.cdn.js.regular'],
35
        ];
36 2
    }
37
}
38