Completed
Push — master ( e3c979...2e24d6 )
by Dmitry
08:02
created

CheckCircle   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 2
dl 0
loc 15
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A run() 0 7 2
1
<?php
2
3
namespace hipanel\modules\domain\widgets;
4
5
use yii\base\Widget;
6
use yii\helpers\Html;
7
8
class CheckCircle extends Widget
9
{
10
    /**
11
     * @var boolean
12
     */
13
    public $value;
14
15
    public function run()
16
    {
17
        return Html::tag('i', null, [
18
            'class' => 'fa fa-fw fa-lg fa-check-circle pull-right',
19
            'style' =>  'color: #' . (boolval($this->value) ? '00a65a' : 'b3b3b3')
20
        ]);
21
    }
22
}
23