original_string: private function getNodeContent(\DOMNode $node)
      {
          $type = $node->attributes->getNamedItem('type');
          if ($type && strtolower($type->nodeValue) == 'xhtml') {
              $result = '';
              foreach ($node->childNodes as $childNode) {
                  $result .= $node->ownerDocument->save($childNode);
              }
              return $result;
          } else {
              return $node->nodeValue;
          }
      }
code: private function getNodeContent(\DOMNode $node)
      {
          $type = $node->attributes->getNamedItem('type');
          if ($type && strtolower($type->nodeValue) == 'xhtml') {
              $result = '';
              foreach ($node->childNodes as $childNode) {
                  $result .= $node->ownerDocument->save($childNode);
              }
              return $result;
          } else {
              return $node->nodeValue;
          }
      }
code_tokens: private function getNodeContent ( \ DOMNode $ node ) { $ type = $ node -> attributes -> getNamedItem ( 'type' ) ; if ( $ type && strtolower ( $ type -> nodeValue ) == 'xhtml' ) { $ result = '' ; foreach ( $ node -> childNodes as $ childNode ) { $ result .= $ node -> ownerDocument -> save ( $ childNode ) ; } return $ result ; } else { return $ node -> nodeValue ; } }
docstring: Enable XHTML types.
  @param \DOMNode $node
  @return string
  @codeCoverageIgnore
docstring_tokens: Enable XHTML types .