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

OpenElement::toString()   A

Complexity

Conditions 4
Paths 3

Size

Total Lines 14
Code Lines 8

Duplication

Lines 4
Ratio 28.57 %

Code Coverage

Tests 0
CRAP Score 20

Importance

Changes 3
Bugs 0 Features 2
Metric Value
c 3
b 0
f 2
dl 4
loc 14
ccs 0
cts 12
cp 0
rs 9.2
cc 4
eloc 8
nc 3
nop 3
crap 20
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