| Conditions | 5 |
| Paths | 5 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | 52 | public function get(DOMElement $node) |
|
| 10 | { |
||
| 11 | 52 | $doc = ''; |
|
| 12 | 52 | foreach ($node->childNodes as $childNode) { |
|
| 13 | 52 | if ($childNode->localName == 'annotation') { |
|
| 14 | 52 | foreach ($childNode->childNodes as $subChildNode) { |
|
| 15 | 52 | if ($subChildNode->localName == 'documentation') { |
|
| 16 | 51 | $doc .= ($subChildNode->nodeValue); |
|
| 17 | 51 | } |
|
| 18 | 52 | } |
|
| 19 | 52 | } |
|
| 20 | 52 | } |
|
| 21 | 52 | $doc = preg_replace('/[\t ]+/', ' ', $doc); |
|
| 22 | |||
| 23 | 52 | return trim($doc); |
|
| 24 | } |
||
| 25 | } |
||
| 26 |