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 |
||
33 | 1 | private function getCiteHtml(\DOMElement $node) |
|
34 | { |
||
35 | 1 | $cite = ''; |
|
36 | |||
37 | 1 | foreach ($this->getCiteNodes($node) as $child) { |
|
38 | 1 | $html = $child->ownerDocument->saveXML($child); |
|
39 | 1 | $html = preg_replace('/<(\/|)cite>/i', '', $html); |
|
40 | 1 | $child->parentNode->removeChild($child); |
|
41 | 1 | $cite = ' ' . $this->htmlToMarkdown($html); |
|
42 | 1 | } |
|
43 | |||
44 | 1 | return $cite; |
|
45 | } |
||
46 | |||
57 |