Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Normalize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
run | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | declare( strict_types = 1 ); |
3 | |
4 | namespace Wikimedia\Parsoid\Wt2Html\DOM\Processors; |
5 | |
6 | use Wikimedia\Parsoid\Config\Env; |
7 | use Wikimedia\Parsoid\DOM\DocumentFragment; |
8 | use Wikimedia\Parsoid\DOM\Element; |
9 | use Wikimedia\Parsoid\DOM\Node; |
10 | use Wikimedia\Parsoid\Utils\DOMCompat; |
11 | use Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor; |
12 | |
13 | class Normalize implements Wt2HtmlDOMProcessor { |
14 | /** |
15 | * @inheritDoc |
16 | */ |
17 | public function run( |
18 | Env $env, Node $root, array $options = [], bool $atTopLevel = false |
19 | ): void { |
20 | '@phan-var Element|DocumentFragment $root'; // @var Element|DocumentFragment $root |
21 | DOMCompat::normalize( $root ); |
22 | } |
23 | } |