Completed
Push — master ( 62c01b...6e9edd )
by Kevin
02:26
created

OpenElement   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

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