original_string: public function renderReport($processedReport)
      {
          $csvRenderer = $this->getRenderer(
              $processedReport['reportData'],
              $processedReport['metadata']['uniqueId']
          );
  
          $reportData = $csvRenderer->render($processedReport);
          if (empty($reportData)) {
              $reportData = Piwik::translate('CoreHome_ThereIsNoDataForThisReport');
          }
  
          $replaceBySpace = array( $csvRenderer->separator, ";");
          $reportName = str_replace($replaceBySpace, " ", $processedReport['metadata']['name']);
          $this->rendered .= implode(
              '',
              array(
                  $reportName,
                  $csvRenderer->lineEnd,
                  $reportData,
                  $csvRenderer->lineEnd,
                  $csvRenderer->lineEnd,
              )
          );
      }
code: public function renderReport($processedReport)
      {
          $csvRenderer = $this->getRenderer(
              $processedReport['reportData'],
              $processedReport['metadata']['uniqueId']
          );
  
          $reportData = $csvRenderer->render($processedReport);
          if (empty($reportData)) {
              $reportData = Piwik::translate('CoreHome_ThereIsNoDataForThisReport');
          }
  
          $replaceBySpace = array( $csvRenderer->separator, ";");
          $reportName = str_replace($replaceBySpace, " ", $processedReport['metadata']['name']);
          $this->rendered .= implode(
              '',
              array(
                  $reportName,
                  $csvRenderer->lineEnd,
                  $reportData,
                  $csvRenderer->lineEnd,
                  $csvRenderer->lineEnd,
              )
          );
      }
code_tokens: public function renderReport ( $ processedReport ) { $ csvRenderer = $ this -> getRenderer ( $ processedReport [ 'reportData' ] , $ processedReport [ 'metadata' ] [ 'uniqueId' ] ) ; $ reportData = $ csvRenderer -> render ( $ processedReport ) ; if ( empty ( $ reportData ) ) { $ reportData = Piwik :: translate ( 'CoreHome_ThereIsNoDataForThisReport' ) ; } $ replaceBySpace = array ( $ csvRenderer -> separator , ";" ) ; $ reportName = str_replace ( $ replaceBySpace , " " , $ processedReport [ 'metadata' ] [ 'name' ] ) ; $ this -> rendered .= implode ( '' , array ( $ reportName , $ csvRenderer -> lineEnd , $ reportData , $ csvRenderer -> lineEnd , $ csvRenderer -> lineEnd , ) ) ; }
docstring: Render the provided report.
  Multiple calls to this method before calling outputRendering appends each report content.
  
  @param array $processedReport @see API::getProcessedReport()
docstring_tokens: Render the provided report . Multiple calls to this method before calling outputRendering appends each report content .