Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
CRAP | |
0.00% |
0 / 1 |
| NullTreeHandler | |
0.00% |
0 / 11 |
|
0.00% |
0 / 11 |
132 | |
0.00% |
0 / 1 |
| startDocument | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| endDocument | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| characters | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| insertElement | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| endTag | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| doctype | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| comment | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| error | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| mergeAttributes | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| removeNode | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| reparentChildren | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | declare( strict_types = 1 ); |
| 3 | |
| 4 | namespace Wikimedia\RemexHtml\TreeBuilder; |
| 5 | |
| 6 | use Wikimedia\RemexHtml\Tokenizer\Attributes; |
| 7 | |
| 8 | /** |
| 9 | * A TreeHandler which does nothing |
| 10 | */ |
| 11 | class NullTreeHandler implements TreeHandler { |
| 12 | /** |
| 13 | * @inheritDoc |
| 14 | */ |
| 15 | public function startDocument( $fns, $fn ) { |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * @inheritDoc |
| 20 | */ |
| 21 | public function endDocument( $pos ) { |
| 22 | } |
| 23 | |
| 24 | /** |
| 25 | * @inheritDoc |
| 26 | */ |
| 27 | public function characters( |
| 28 | $parent, $refNode, $text, $start, $length, $sourceStart, $sourceLength |
| 29 | ) { |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * @inheritDoc |
| 34 | */ |
| 35 | public function insertElement( $parent, $refNode, Element $element, $void, |
| 36 | $sourceStart, $sourceLength |
| 37 | ) { |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * @inheritDoc |
| 42 | */ |
| 43 | public function endTag( Element $element, $sourceStart, $sourceLength ) { |
| 44 | } |
| 45 | |
| 46 | /** |
| 47 | * @inheritDoc |
| 48 | */ |
| 49 | public function doctype( $name, $public, $system, $quirks, $sourceStart, $sourceLength ) { |
| 50 | } |
| 51 | |
| 52 | /** |
| 53 | * @inheritDoc |
| 54 | */ |
| 55 | public function comment( $parent, $refNode, $text, $sourceStart, $sourceLength ) { |
| 56 | } |
| 57 | |
| 58 | /** |
| 59 | * @inheritDoc |
| 60 | */ |
| 61 | public function error( $text, $pos ) { |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * @inheritDoc |
| 66 | */ |
| 67 | public function mergeAttributes( Element $element, Attributes $attrs, $sourceStart ) { |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * @inheritDoc |
| 72 | */ |
| 73 | public function removeNode( Element $element, $sourceStart ) { |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * @inheritDoc |
| 78 | */ |
| 79 | public function reparentChildren( Element $element, Element $newParent, $sourceStart ) { |
| 80 | } |
| 81 | } |