private function finishAvgBlock($block)
    {
        if (!array_key_exists($block, $this->avgs)) {
            throw new \Exception('Average block '.$block.' not defined');
        }
        $this->avgs[$block]['avg'] = $this->avgs[$block]['total'] / $this->avgs[$block]['count'];

        return $this->avgs[$block];
    }
private function finishAvgBlock($block)
    {
        if (!array_key_exists($block, $this->avgs)) {
            throw new \Exception('Average block '.$block.' not defined');
        }
        $this->avgs[$block]['avg'] = $this->avgs[$block]['total'] / $this->avgs[$block]['count'];

        return $this->avgs[$block];
    }
private function finishAvgBlock ( $ block ) { if ( ! array_key_exists ( $ block , $ this -> avgs ) ) { throw new \ Exception ( 'Average block ' . $ block . ' not defined' ) ; } $ this -> avgs [ $ block ] [ 'avg' ] = $ this -> avgs [ $ block ] [ 'total' ] / $ this -> avgs [ $ block ] [ 'count' ] ; return $ this -> avgs [ $ block ] ; }
Finish average block

@param string $block - key to identify block

@return mixed
@throws \Exception
Finish average block