original_string: public function copy_content_to_temp($dir = 'files', $fileprefix = 'tempup_') {
          $tempfile = false;
          if (!$dir = make_temp_directory($dir)) {
              return false;
          }
          if (!$tempfile = tempnam($dir, $fileprefix)) {
              return false;
          }
          if (!$this->copy_content_to($tempfile)) {
              // something went wrong
              @unlink($tempfile);
              return false;
          }
          return $tempfile;
      }
code: public function copy_content_to_temp($dir = 'files', $fileprefix = 'tempup_') {
          $tempfile = false;
          if (!$dir = make_temp_directory($dir)) {
              return false;
          }
          if (!$tempfile = tempnam($dir, $fileprefix)) {
              return false;
          }
          if (!$this->copy_content_to($tempfile)) {
              // something went wrong
              @unlink($tempfile);
              return false;
          }
          return $tempfile;
      }
code_tokens: public function copy_content_to_temp ( $ dir = 'files' , $ fileprefix = 'tempup_' ) { $ tempfile = false ; if ( ! $ dir = make_temp_directory ( $ dir ) ) { return false ; } if ( ! $ tempfile = tempnam ( $ dir , $ fileprefix ) ) { return false ; } if ( ! $ this -> copy_content_to ( $ tempfile ) ) { // something went wrong @ unlink ( $ tempfile ) ; return false ; } return $ tempfile ; }
docstring: Copy content of file to temporary folder and returns file path
  
  @param string $dir name of the temporary directory
  @param string $fileprefix prefix of temporary file.
  @return string|bool path of temporary file or false.
docstring_tokens: Copy content of file to temporary folder and returns file path