original_string: public static function getProcessedMetricsForTable(DataTable $dataTable, Report $report = null)
      {
          /** @var ProcessedMetric[] $metrics */
          $metrics = self::getMetricsForTable($dataTable, $report, 'Piwik\\Plugin\\ProcessedMetric');
  
          // sort metrics w/ dependent metrics calculated before the metrics that depend on them
          $result = [];
          self::processedMetricDfs($metrics, function ($metricName) use (&$result, $metrics) {
              $result[$metricName] = $metrics[$metricName];
          });
          return $result;
      }
code: public static function getProcessedMetricsForTable(DataTable $dataTable, Report $report = null)
      {
          /** @var ProcessedMetric[] $metrics */
          $metrics = self::getMetricsForTable($dataTable, $report, 'Piwik\\Plugin\\ProcessedMetric');
  
          // sort metrics w/ dependent metrics calculated before the metrics that depend on them
          $result = [];
          self::processedMetricDfs($metrics, function ($metricName) use (&$result, $metrics) {
              $result[$metricName] = $metrics[$metricName];
          });
          return $result;
      }
code_tokens: public static function getProcessedMetricsForTable ( DataTable $ dataTable , Report $ report = null ) { /** @var ProcessedMetric[] $metrics */ $ metrics = self :: getMetricsForTable ( $ dataTable , $ report , 'Piwik\\Plugin\\ProcessedMetric' ) ; // sort metrics w/ dependent metrics calculated before the metrics that depend on them $ result = [ ] ; self :: processedMetricDfs ( $ metrics , function ( $ metricName ) use ( & $ result , $ metrics ) { $ result [ $ metricName ] = $ metrics [ $ metricName ] ; } ) ; return $ result ; }
docstring: Returns the ProcessedMetrics that should be computed and formatted for a DataTable of a
  certain report. The ProcessedMetrics returned are those specified by the Report metadata
  as well as the DataTable metadata.
  
  @param DataTable $dataTable
  @param Report|null $report
  @return ProcessedMetric[]
  @api
docstring_tokens: Returns the ProcessedMetrics that should be computed and formatted for a DataTable of a certain report . The ProcessedMetrics returned are those specified by the Report metadata as well as the DataTable metadata .