library/MC_Metrics.php
protected function _readMetricsForClass($oClass)
    {
        $sClass = (string)$oClass['name'];

        foreach ($oClass as $oFunction) {
            $this->_readFunctionMetrics($sClass, $oFunction);
        }

        $iLocSum = $this->_aStats[$sClass]['sum']['locExecutable'];

        // Statistics
        if ($iLocSum) {
            $this->_aStats[$sClass]['stat']['cnn'] = $this->_aStats[$sClass]['sum']['cnn'] / $iLocSum;
            $this->_aStats[$sClass]['stat']['crap'] = $this->_aStats[$sClass]['sum']['crap'] / $iLocSum;
            $this->_aStats[$sClass]['stat']['npath'] = $this->_aStats[$sClass]['sum']['npath'] / $iLocSum;
        }
    }
protected function _readMetricsForClass($oClass)
    {
        $sClass = (string)$oClass['name'];

        foreach ($oClass as $oFunction) {
            $this->_readFunctionMetrics($sClass, $oFunction);
        }

        $iLocSum = $this->_aStats[$sClass]['sum']['locExecutable'];

        // Statistics
        if ($iLocSum) {
            $this->_aStats[$sClass]['stat']['cnn'] = $this->_aStats[$sClass]['sum']['cnn'] / $iLocSum;
            $this->_aStats[$sClass]['stat']['crap'] = $this->_aStats[$sClass]['sum']['crap'] / $iLocSum;
            $this->_aStats[$sClass]['stat']['npath'] = $this->_aStats[$sClass]['sum']['npath'] / $iLocSum;
        }
    }
protected function _readMetricsForClass ( $ oClass ) { $ sClass = ( string ) $ oClass [ 'name' ] ; foreach ( $ oClass as $ oFunction ) { $ this -> _readFunctionMetrics ( $ sClass , $ oFunction ) ; } $ iLocSum = $ this -> _aStats [ $ sClass ] [ 'sum' ] [ 'locExecutable' ] ; // Statistics if ( $ iLocSum ) { $ this -> _aStats [ $ sClass ] [ 'stat' ] [ 'cnn' ] = $ this -> _aStats [ $ sClass ] [ 'sum' ] [ 'cnn' ] / $ iLocSum ; $ this -> _aStats [ $ sClass ] [ 'stat' ] [ 'crap' ] = $ this -> _aStats [ $ sClass ] [ 'sum' ] [ 'crap' ] / $ iLocSum ; $ this -> _aStats [ $ sClass ] [ 'stat' ] [ 'npath' ] = $ this -> _aStats [ $ sClass ] [ 'sum' ] [ 'npath' ] / $ iLocSum ; } }
To make analysis for class

@param object $oClass class xml object
To make analysis for class