Completed
Push — master ( 0b908e...886262 )
by Kevin
02:30
created

OpenElement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 2
Metric Value
wmc 1
c 4
b 0
f 2
lcom 1
cbo 1
dl 0
loc 10
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildHtml() 0 7 1
1
<?php
2
3
namespace Groundskeeper\Tokens\Elements;
4
5
use Groundskeeper\Configuration;
6
7
class OpenElement extends Element
8
{
9 6
    protected function buildHtml($prefix, $suffix)
10
    {
11 6
        $output = $this->buildStartTag($prefix, $suffix, true);
12 6
        $output .= $this->buildChildrenHtml($prefix, $suffix);
13
14 6
        return $output . $prefix . '</' . $this->getName() . '>' . $suffix;
15
    }
16
}
17