original_string: private static function getCleanedHTML(DOMDocument $doc, $container)
      {
          while ($doc->firstChild) {
              $doc->removeChild($doc->firstChild);
          }
  
          while ($container->firstChild ) {
              $doc->appendChild($container->firstChild);
          }
  
          $html = trim($doc->saveHTML());
          return $html;
      }
code: private static function getCleanedHTML(DOMDocument $doc, $container)
      {
          while ($doc->firstChild) {
              $doc->removeChild($doc->firstChild);
          }
  
          while ($container->firstChild ) {
              $doc->appendChild($container->firstChild);
          }
  
          $html = trim($doc->saveHTML());
          return $html;
      }
code_tokens: private static function getCleanedHTML ( DOMDocument $ doc , $ container ) { while ( $ doc -> firstChild ) { $ doc -> removeChild ( $ doc -> firstChild ) ; } while ( $ container -> firstChild ) { $ doc -> appendChild ( $ container -> firstChild ) ; } $ html = trim ( $ doc -> saveHTML ( ) ) ; return $ html ; }
docstring: Clean extra code
  
  @param DOMDocument $doc
  @param $container
  @return string
docstring_tokens: Clean extra code