original_string: protected function _appendDataToNode($addCdata, Xml $xml, $key, $value)
      {
          if ($addCdata) {
              $cdata      = $xml->createCDATASection($value);
              $element    = $xml->createElement(
                  $this->_integerToStringKey($key)
              );
              $element->appendChild($cdata);
          } else {
              $element = $xml->createElement(
                  $this->_integerToStringKey($key),
                  $value
              );
          }
  
          return $element;
      }
code: protected function _appendDataToNode($addCdata, Xml $xml, $key, $value)
      {
          if ($addCdata) {
              $cdata      = $xml->createCDATASection($value);
              $element    = $xml->createElement(
                  $this->_integerToStringKey($key)
              );
              $element->appendChild($cdata);
          } else {
              $element = $xml->createElement(
                  $this->_integerToStringKey($key),
                  $value
              );
          }
  
          return $element;
      }
code_tokens: protected function _appendDataToNode ( $ addCdata , Xml $ xml , $ key , $ value ) { if ( $ addCdata ) { $ cdata = $ xml -> createCDATASection ( $ value ) ; $ element = $ xml -> createElement ( $ this -> _integerToStringKey ( $ key ) ) ; $ element -> appendChild ( $ cdata ) ; } else { $ element = $ xml -> createElement ( $ this -> _integerToStringKey ( $ key ) , $ value ) ; } return $ element ; }
docstring: append data to node
  
  @param string $addCdata
  @param Xml $xml
  @param string|integer $key
  @param string $value
  @return DOMElement
docstring_tokens: append data to node