| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php # -*- coding: utf-8 -*- |
||
| 6 | class Image extends AbstractRegexRule |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Get the regex rule to identify the content for the callback. |
||
| 11 | * Parse image with optional alt string, like  |
||
| 12 | * |
||
| 13 | * @return string |
||
| 14 | */ |
||
| 15 | 8 | public function rule(): string |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | 5 | public function render(array $content): string |
|
| 36 |