original_string: private function xmlToObj($fileContents)
    {
      $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
      $fileContents = trim(str_replace('"', "'", $fileContents));
      $simpleXml    = simplexml_load_string($fileContents, null, LIBXML_NOCDATA);
  
      return $simpleXml;
    }
code: private function xmlToObj($fileContents)
    {
      $fileContents = str_replace(array("\n", "\r", "\t"), '', $fileContents);
      $fileContents = trim(str_replace('"', "'", $fileContents));
      $simpleXml    = simplexml_load_string($fileContents, null, LIBXML_NOCDATA);
  
      return $simpleXml;
    }
code_tokens: private function xmlToObj ( $ fileContents ) { $ fileContents = str_replace ( array ( "\n" , "\r" , "\t" ) , '' , $ fileContents ) ; $ fileContents = trim ( str_replace ( '"' , "'" , $ fileContents ) ) ; $ simpleXml = simplexml_load_string ( $ fileContents , null , LIBXML_NOCDATA ) ; return $ simpleXml ; }
docstring: Convert XML string to object
  
  @param $fileContents
  
  @return \SimpleXMLElement
docstring_tokens: Convert XML string to object