original_string: protected function createTmpFile($content = null)
      {
          $tmpPath = $this->getConfig('tmp', sys_get_temp_dir());
          $tmpFile = tempnam($tmpPath,'tmp_WkHtmlToPdf_');
          rename($tmpFile, $tmpFile .= '.html');
  
          if (!is_null($content)) {
              file_put_contents($tmpFile, $content);
          }
  
          $this->tmpFiles[] = $tmpFile;
  
          return $tmpFile;
      }
code: protected function createTmpFile($content = null)
      {
          $tmpPath = $this->getConfig('tmp', sys_get_temp_dir());
          $tmpFile = tempnam($tmpPath,'tmp_WkHtmlToPdf_');
          rename($tmpFile, $tmpFile .= '.html');
  
          if (!is_null($content)) {
              file_put_contents($tmpFile, $content);
          }
  
          $this->tmpFiles[] = $tmpFile;
  
          return $tmpFile;
      }
code_tokens: protected function createTmpFile ( $ content = null ) { $ tmpPath = $ this -> getConfig ( 'tmp' , sys_get_temp_dir ( ) ) ; $ tmpFile = tempnam ( $ tmpPath , 'tmp_WkHtmlToPdf_' ) ; rename ( $ tmpFile , $ tmpFile .= '.html' ) ; if ( ! is_null ( $ content ) ) { file_put_contents ( $ tmpFile , $ content ) ; } $ this -> tmpFiles [ ] = $ tmpFile ; return $ tmpFile ; }
docstring: Create a tmp file, optionally with given content
  
  @param  mixed $content The file content
  @return string The path to the created file
docstring_tokens: Create a tmp file optionally with given content