| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 1 | private function getCiteHtml(\DOMElement $node) |
|
| 32 | { |
||
| 33 | 1 | $cite = ''; |
|
| 34 | |||
| 35 | 1 | foreach ($this->getCiteNodes($node) as $child) { |
|
| 36 | 1 | $html = $child->ownerDocument->saveXML($child); |
|
| 37 | 1 | $html = preg_replace('/<(\/|)cite>/i', '', $html); |
|
| 38 | 1 | $child->parentNode->removeChild($child); |
|
| 39 | 1 | $cite = ' ' . $this->htmlToMarkdown($html); |
|
| 40 | 1 | } |
|
| 41 | |||
| 42 | 1 | return $cite; |
|
| 43 | } |
||
| 44 | |||
| 55 |