original_string: private function writeDocument(\DOMDocument $dom)
      {
          $dom->formatOutput = true;
          $this->write($dom->saveXML());
      }
code: private function writeDocument(\DOMDocument $dom)
      {
          $dom->formatOutput = true;
          $this->write($dom->saveXML());
      }
code_tokens: private function writeDocument ( \ DOMDocument $ dom ) { $ dom -> formatOutput = true ; $ this -> write ( $ dom -> saveXML ( ) ) ; }
docstring: Writes DOM document.
  
  @return \DOMDocument|string
docstring_tokens: Writes DOM document .