original_string: public function get_aggregate_string() {
  
          $aggregate = $this->aggregate;
          $method = $this->settings->aggregationmethod;
  
          // Only display aggregate if aggregation method isn't COUNT.
          $aggregatestr = '';
          if (is_numeric($aggregate) && $method != RATING_AGGREGATE_COUNT) {
              if ($method != RATING_AGGREGATE_SUM && !$this->settings->scale->isnumeric) {
  
                  // Round aggregate as we're using it as an index.
                  $aggregatestr .= $this->settings->scale->scaleitems[round($aggregate)];
              } else { // Aggregation is SUM or the scale is numeric.
                  $aggregatestr .= round($aggregate, 1);
              }
          }
  
          return $aggregatestr;
      }
code: public function get_aggregate_string() {
  
          $aggregate = $this->aggregate;
          $method = $this->settings->aggregationmethod;
  
          // Only display aggregate if aggregation method isn't COUNT.
          $aggregatestr = '';
          if (is_numeric($aggregate) && $method != RATING_AGGREGATE_COUNT) {
              if ($method != RATING_AGGREGATE_SUM && !$this->settings->scale->isnumeric) {
  
                  // Round aggregate as we're using it as an index.
                  $aggregatestr .= $this->settings->scale->scaleitems[round($aggregate)];
              } else { // Aggregation is SUM or the scale is numeric.
                  $aggregatestr .= round($aggregate, 1);
              }
          }
  
          return $aggregatestr;
      }
code_tokens: public function get_aggregate_string ( ) { $ aggregate = $ this -> aggregate ; $ method = $ this -> settings -> aggregationmethod ; // Only display aggregate if aggregation method isn't COUNT. $ aggregatestr = '' ; if ( is_numeric ( $ aggregate ) && $ method != RATING_AGGREGATE_COUNT ) { if ( $ method != RATING_AGGREGATE_SUM && ! $ this -> settings -> scale -> isnumeric ) { // Round aggregate as we're using it as an index. $ aggregatestr .= $ this -> settings -> scale -> scaleitems [ round ( $ aggregate ) ] ; } else { // Aggregation is SUM or the scale is numeric. $ aggregatestr .= round ( $ aggregate , 1 ) ; } } return $ aggregatestr ; }
docstring: Returns this ratings aggregate value as a string.
  
  @return string ratings aggregate value
docstring_tokens: Returns this ratings aggregate value as a string .