FontAwesomeAsset   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 7
c 1
b 0
f 0
dl 0
loc 17
rs 10

1 Method

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