FontAwesomeAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 18
ccs 7
cts 7
cp 1
rs 10
c 0
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A init() 0 8 2
1
<?php
2
3
namespace dominus77\iconpicker;
4
5
use yii\web\AssetBundle;
6
7
/**
8
 * Class FontAwesomeAsset
9
 * @package dominus77\iconpicker
10
 */
11
class FontAwesomeAsset extends AssetBundle
12
{
13
    /**
14
     * @var string
15
     */
16
    public $sourcePath;
17
18
    /**
19
     * @inheritdoc
20
     */
21 12
    public function init()
22
    {
23 12
        set_time_limit(0);
24 12
        parent::init();
25 12
        $this->sourcePath = '@vendor/fortawesome/font-awesome';
26 12
        $min = YII_ENV_DEV ? '' : '.min';
27 12
        $this->css = [
28 12
            'css/all' . $min . '.css'
29
        ];
30 12
    }
31
}
32