Published::show()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
c 2
b 1
f 0
dl 0
loc 11
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
1
<?php namespace Mascame\Artificer\Fields\Types;
2
3
class Published extends Checkbox
4
{
5
6
    public function show()
7
    {
8
        if ($this->value) {
9
            ?>
10
            <div class="text-center">
11
                <i class="fa fa-globe" title="Published"></i>
12
            </div>
13
        <?php
14
        }
15
16
    }
17
18
}