original_string: protected static function processTableFormat($reportMetadata, $report, $reportColumns)
      {
          $finalReport = $report;
          if (empty($reportMetadata['dimension'])) {
              $simpleReportMetrics = $report->getFirstRow();
              if ($simpleReportMetrics) {
                  $finalReport = new Simple();
                  foreach ($simpleReportMetrics->getColumns() as $metricId => $metric) {
                      $newRow = new Row();
                      $newRow->addColumn("label", $reportColumns[$metricId]);
                      $newRow->addColumn("value", $metric);
                      $finalReport->addRow($newRow);
                  }
              }
  
              $reportColumns = array(
                  'label' => Piwik::translate('General_Name'),
                  'value' => Piwik::translate('General_Value'),
              );
          }
  
          return array(
              $finalReport,
              $reportColumns,
          );
      }
code: protected static function processTableFormat($reportMetadata, $report, $reportColumns)
      {
          $finalReport = $report;
          if (empty($reportMetadata['dimension'])) {
              $simpleReportMetrics = $report->getFirstRow();
              if ($simpleReportMetrics) {
                  $finalReport = new Simple();
                  foreach ($simpleReportMetrics->getColumns() as $metricId => $metric) {
                      $newRow = new Row();
                      $newRow->addColumn("label", $reportColumns[$metricId]);
                      $newRow->addColumn("value", $metric);
                      $finalReport->addRow($newRow);
                  }
              }
  
              $reportColumns = array(
                  'label' => Piwik::translate('General_Name'),
                  'value' => Piwik::translate('General_Value'),
              );
          }
  
          return array(
              $finalReport,
              $reportColumns,
          );
      }
code_tokens: protected static function processTableFormat ( $ reportMetadata , $ report , $ reportColumns ) { $ finalReport = $ report ; if ( empty ( $ reportMetadata [ 'dimension' ] ) ) { $ simpleReportMetrics = $ report -> getFirstRow ( ) ; if ( $ simpleReportMetrics ) { $ finalReport = new Simple ( ) ; foreach ( $ simpleReportMetrics -> getColumns ( ) as $ metricId => $ metric ) { $ newRow = new Row ( ) ; $ newRow -> addColumn ( "label" , $ reportColumns [ $ metricId ] ) ; $ newRow -> addColumn ( "value" , $ metric ) ; $ finalReport -> addRow ( $ newRow ) ; } } $ reportColumns = array ( 'label' => Piwik :: translate ( 'General_Name' ) , 'value' => Piwik :: translate ( 'General_Value' ) , ) ; } return array ( $ finalReport , $ reportColumns , ) ; }
docstring: Convert a dimension-less report to a multi-row two-column data table
  
  @static
  @param  $reportMetadata array
  @param  $report DataTable
  @param  $reportColumns array
  @return array DataTable $report & array $columns
docstring_tokens: Convert a dimension - less report to a multi - row two - column data table