original_string: public function renderExcel()
      {
          $this->beforeRender();
          $list = $this->getListViewData();
  
          $helper = new ExcelHelper();
   
          $helper->setHeaderClosure(function ($key, $value) {
              $this->getSlim()->response()->header($key, $value);
          });
  
          $helper->genExcel($this, $list, $this->getExportFilename());
      }
code: public function renderExcel()
      {
          $this->beforeRender();
          $list = $this->getListViewData();
  
          $helper = new ExcelHelper();
   
          $helper->setHeaderClosure(function ($key, $value) {
              $this->getSlim()->response()->header($key, $value);
          });
  
          $helper->genExcel($this, $list, $this->getExportFilename());
      }
code_tokens: public function renderExcel ( ) { $ this -> beforeRender ( ) ; $ list = $ this -> getListViewData ( ) ; $ helper = new ExcelHelper ( ) ; $ helper -> setHeaderClosure ( function ( $ key , $ value ) { $ this -> getSlim ( ) -> response ( ) -> header ( $ key , $ value ) ; } ) ; $ helper -> genExcel ( $ this , $ list , $ this -> getExportFilename ( ) ) ; }
docstring: Override render Excel function
  @throws Exception\NoFieldException
docstring_tokens: Override render Excel function