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

CdnBrandJsAsset::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 3
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
1
<?php
2
3
namespace terabytesoft\assets\fontawesome\cdn;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * CdnBrandJsAsset
9
 *
10
 * The asset font awesome free brands js svgfont content delivery network
11
 **/
12
class CdnBrandJsAsset 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()
31
    {
32 2
        parent::init();
33 2
        $this->js[] = [
34 2
            \Yii::$app->params['asset.fontawesome.cdn.js.brand'],
35
        ];
36 2
    }
37
}
38