Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 2 |
Normalize | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
run | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
<?php | |
declare( strict_types = 1 ); | |
namespace Wikimedia\Parsoid\Wt2Html\PP\Processors; | |
use Wikimedia\Parsoid\Config\Env; | |
use Wikimedia\Parsoid\DOM\DocumentFragment; | |
use Wikimedia\Parsoid\DOM\Element; | |
use Wikimedia\Parsoid\DOM\Node; | |
use Wikimedia\Parsoid\Utils\DOMCompat; | |
use Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor; | |
class Normalize implements Wt2HtmlDOMProcessor { | |
/** | |
* @inheritDoc | |
*/ | |
public function run( | |
Env $env, Node $root, array $options = [], bool $atTopLevel = false | |
): void { | |
'@phan-var Element|DocumentFragment $root'; // @var Element|DocumentFragment $root | |
DOMCompat::normalize( $root ); | |
} | |
} |