| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php | ||
| 41 |     protected function getNodeListFromQueryPath() { | ||
| 42 | |||
| 43 | $xpath = new DOMXPath( $this->dom ); | ||
| 44 | |||
| 45 |         if ( $this->isXmlFragment ) { | ||
| 46 | $htmlNodeList = $xpath->query( "/" . self::fragmentDocumentRoot ); | ||
| 47 |         } else { | ||
| 48 | $htmlNodeList = $xpath->query( "/html" ); | ||
| 49 | } | ||
| 50 | |||
| 51 | return $htmlNodeList; | ||
|  | |||
| 52 | |||
| 55 | } |