Passed
Push — master ( e98e31...880950 )
by Bruno
06:29
created

Badge::render()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 2
dl 0
loc 5
rs 10
1
<?php declare(strict_types=1);
2
3
namespace Formularium\Frontend\Materialize\Element;
4
5
use Formularium\Element;
6
use Formularium\HTMLNode;
7
8
class Badge extends Element
9
{
10
    public function render(array $parameters, HTMLNode $previous): HTMLNode
11
    {
12
        $badgeMode = ''; // TODO
0 ignored issues
show
Unused Code introduced by
The assignment to $badgeMode is dead and can be removed.
Loading history...
13
        $previous->addAttribute('class', "badge");
14
        return $previous;
15
    }
16
}
17