| Conditions | 7 | 
| Paths | 5 | 
| Total Lines | 22 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 12 | public function get(DOMElement $node)  | 
            ||
| 13 |     { | 
            ||
| 14 | $doc = '';  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * @var \DOMNode $childNode  | 
            ||
| 18 | */  | 
            ||
| 19 |         foreach ($node->childNodes as $childNode) { | 
            ||
| 20 |             if ($childNode instanceof DOMElement && $childNode->localName == 'annotation') { | 
            ||
| 21 | /**  | 
            ||
| 22 | * @var \DOMNode $subChildNode  | 
            ||
| 23 | */  | 
            ||
| 24 |                 foreach ($childNode->childNodes as $subChildNode) { | 
            ||
| 25 |                     if ($subChildNode instanceof DOMElement && $subChildNode->localName == 'documentation') { | 
            ||
| 26 | $doc .= ($subChildNode->nodeValue);  | 
            ||
| 27 | }  | 
            ||
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 | }  | 
            ||
| 31 |         $doc = preg_replace('/[\t ]+/', ' ', $doc); | 
            ||
| 32 | |||
| 33 | return trim($doc);  | 
            ||
| 34 | }  | 
            ||
| 36 |