common/components/statistics/service/StatisticalData.php
/**
     * Returns max attribute value
     *
     * @param  string $attr
     * @return integer|float
     */
Returns max attribute value
@param  string $attr
@return integer|float
Returns max attribute value @param string $attr @return integer|float
public function max($attr)
    {
        $max = -INF;
        foreach ($this->data as $data) {
            if (isset($data->$attr) && ($data->$attr > $max)) {
                $max = $data;
            }
        }
        return $max;
    }
public function max ( $ attr ) { $ max = - INF ; foreach ( $ this -> data as $ data ) { if ( isset ( $ data -> $ attr ) && ( $ data -> $ attr > $ max ) ) { $ max = $ data ; } } return $ max ; }
Returns max attribute value
 @param  string $attr
 @return integer|float
Returns max attribute value @param string $attr @return integer|float