original_string: public function import_external_file(stored_file $storedfile, $maxbytes = 0) {
          global $CFG;
          $storedfile->import_external_file_contents($maxbytes);
          $storedfile->delete_reference();
          return $storedfile;
      }
code: public function import_external_file(stored_file $storedfile, $maxbytes = 0) {
          global $CFG;
          $storedfile->import_external_file_contents($maxbytes);
          $storedfile->delete_reference();
          return $storedfile;
      }
code_tokens: public function import_external_file ( stored_file $ storedfile , $ maxbytes = 0 ) { global $ CFG ; $ storedfile -> import_external_file_contents ( $ maxbytes ) ; $ storedfile -> delete_reference ( ) ; return $ storedfile ; }
docstring: Convert file alias to local file
  
  @throws moodle_exception if file could not be downloaded
  
  @param stored_file $storedfile a stored_file instances
  @param int $maxbytes throw an exception if file size is bigger than $maxbytes (0 means no limit)
  @return stored_file stored_file
docstring_tokens: Convert file alias to local file