original_string: public function getProcessedMetricsById()
      {
          $processedMetrics = $this->processedMetrics ?: array();
  
          $result = array();
          foreach ($processedMetrics as $processedMetric) {
              if ($processedMetric instanceof ProcessedMetric || $processedMetric instanceof ArchivedMetric) { // instanceof check for backwards compatibility
                  $result[$processedMetric->getName()] = $processedMetric;
              }
          }
          return $result;
      }
code: public function getProcessedMetricsById()
      {
          $processedMetrics = $this->processedMetrics ?: array();
  
          $result = array();
          foreach ($processedMetrics as $processedMetric) {
              if ($processedMetric instanceof ProcessedMetric || $processedMetric instanceof ArchivedMetric) { // instanceof check for backwards compatibility
                  $result[$processedMetric->getName()] = $processedMetric;
              }
          }
          return $result;
      }
code_tokens: public function getProcessedMetricsById ( ) { $ processedMetrics = $ this -> processedMetrics ? : array ( ) ; $ result = array ( ) ; foreach ( $ processedMetrics as $ processedMetric ) { if ( $ processedMetric instanceof ProcessedMetric || $ processedMetric instanceof ArchivedMetric ) { // instanceof check for backwards compatibility $ result [ $ processedMetric -> getName ( ) ] = $ processedMetric ; } } return $ result ; }
docstring: Returns an array mapping the ProcessedMetrics served by this report by their string names.
  
  @return ProcessedMetric[]
docstring_tokens: Returns an array mapping the ProcessedMetrics served by this report by their string names .