original_string: public function downloadAction()
      {
          $model = $this->getModel();
          $model->applyRequest($this->getRequest());
  
          $fileData = $model->loadFirst();
  
          header('Content-Type: application/x-download');
          header('Content-Length: '.$fileData['size']);
          header('Content-Disposition: inline; filename="'.$fileData['filename'].'"');
          header('Pragma: public');
  
          echo $fileData['content'];
          exit();
      }
code: public function downloadAction()
      {
          $model = $this->getModel();
          $model->applyRequest($this->getRequest());
  
          $fileData = $model->loadFirst();
  
          header('Content-Type: application/x-download');
          header('Content-Length: '.$fileData['size']);
          header('Content-Disposition: inline; filename="'.$fileData['filename'].'"');
          header('Pragma: public');
  
          echo $fileData['content'];
          exit();
      }
code_tokens: public function downloadAction ( ) { $ model = $ this -> getModel ( ) ; $ model -> applyRequest ( $ this -> getRequest ( ) ) ; $ fileData = $ model -> loadFirst ( ) ; header ( 'Content-Type: application/x-download' ) ; header ( 'Content-Length: ' . $ fileData [ 'size' ] ) ; header ( 'Content-Disposition: inline; filename="' . $ fileData [ 'filename' ] . '"' ) ; header ( 'Pragma: public' ) ; echo $ fileData [ 'content' ] ; exit ( ) ; }
docstring: Action for downloading the file
docstring_tokens: Action for downloading the file