Conditions | 3 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
45 | 2 | public function getHtml() { |
|
46 | |||
47 | 2 | $ret = ''; |
|
48 | |||
49 | 2 | if ( $this->getDomElement() !== null ) { |
|
50 | |||
51 | 1 | $dom = $this->getDomElement()->ownerDocument; |
|
52 | |||
53 | 1 | foreach ( $this->getDomElement()->childNodes as $node ) { |
|
54 | 1 | $ret .= $dom->saveHTML( $node ); |
|
55 | 1 | } |
|
56 | 1 | } |
|
57 | |||
58 | 2 | return $ret; |
|
59 | } |
||
60 | |||
62 |