original_string: public function download($name, $outputName = null)
      {
          if (!preg_match('/^oc[0-9a-z]*$/i', $name)) {
              throw new ApplicationException(Lang::get('backend::lang.import_export.file_not_found_error'));
          }
  
          $csvPath = temp_path() . '/' . $name;
          if (!file_exists($csvPath)) {
              throw new ApplicationException(Lang::get('backend::lang.import_export.file_not_found_error'));
          }
  
          return Response::download($csvPath, $outputName)->deleteFileAfterSend(true);
      }
code: public function download($name, $outputName = null)
      {
          if (!preg_match('/^oc[0-9a-z]*$/i', $name)) {
              throw new ApplicationException(Lang::get('backend::lang.import_export.file_not_found_error'));
          }
  
          $csvPath = temp_path() . '/' . $name;
          if (!file_exists($csvPath)) {
              throw new ApplicationException(Lang::get('backend::lang.import_export.file_not_found_error'));
          }
  
          return Response::download($csvPath, $outputName)->deleteFileAfterSend(true);
      }
code_tokens: public function download ( $ name , $ outputName = null ) { if ( ! preg_match ( '/^oc[0-9a-z]*$/i' , $ name ) ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.import_export.file_not_found_error' ) ) ; } $ csvPath = temp_path ( ) . '/' . $ name ; if ( ! file_exists ( $ csvPath ) ) { throw new ApplicationException ( Lang :: get ( 'backend::lang.import_export.file_not_found_error' ) ) ; } return Response :: download ( $ csvPath , $ outputName ) -> deleteFileAfterSend ( true ) ; }
docstring: Download a previously compiled export file.
  @return void
docstring_tokens: Download a previously compiled export file .