Total Complexity | 2 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php # -*- coding: utf-8 -*- |
||
6 | class CleanUpPre extends AbstractRegexRule |
||
7 | { |
||
8 | |||
9 | /** |
||
10 | * Get the regex rule to identify the content for the callback. |
||
11 | * Clean up pre code blocks to get for a block only one pre code block, not each line. |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | 4 | public function rule(): string |
|
18 | } |
||
19 | |||
20 | /** |
||
21 | * {@inheritdoc} |
||
22 | */ |
||
23 | 1 | public function render(array $content): string |
|
28 |