original_string: protected function output()
      {
          ob_start();
  
          $writer = PHPExcel_IOFactory::createWriter($this->PhpExcel, 'Excel2007');
  
          if (!isset($writer)) {
              throw new Exception('Excel writer not found');
          }
  
          $writer->setPreCalculateFormulas(false);
          $writer->setIncludeCharts(true);
          $writer->save('php://output');
  
          $output = ob_get_clean();
  
          return $output;
      }
code: protected function output()
      {
          ob_start();
  
          $writer = PHPExcel_IOFactory::createWriter($this->PhpExcel, 'Excel2007');
  
          if (!isset($writer)) {
              throw new Exception('Excel writer not found');
          }
  
          $writer->setPreCalculateFormulas(false);
          $writer->setIncludeCharts(true);
          $writer->save('php://output');
  
          $output = ob_get_clean();
  
          return $output;
      }
code_tokens: protected function output ( ) { ob_start ( ) ; $ writer = PHPExcel_IOFactory :: createWriter ( $ this -> PhpExcel , 'Excel2007' ) ; if ( ! isset ( $ writer ) ) { throw new Exception ( 'Excel writer not found' ) ; } $ writer -> setPreCalculateFormulas ( false ) ; $ writer -> setIncludeCharts ( true ) ; $ writer -> save ( 'php://output' ) ; $ output = ob_get_clean ( ) ; return $ output ; }
docstring: Generates the binary excel data
  
  @return string
  @throws CakeException If the excel writer does not exist
docstring_tokens: Generates the binary excel data