HorizontalRuleConverter   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
c 0
b 0
f 0
dl 0
loc 13
ccs 2
cts 2
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSupportedTags() 0 3 1
A convert() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace League\HTMLToMarkdown\Converter;
6
7
use League\HTMLToMarkdown\ElementInterface;
8
9
class HorizontalRuleConverter implements ConverterInterface
10
{
11
    public function convert(ElementInterface $element): string
12
    {
13
        return "---\n\n";
14 3
    }
15
16 3
    /**
17
     * @return string[]
18
     */
19
    public function getSupportedTags(): array
20
    {
21
        return ['hr'];
22 99
    }
23
}
24