library/MC_Metrics.php
protected function _readFunctionMetrics($sClass, $oFunction)
    {
        $iCcn = (int)$oFunction['ccn'];
        $iCrap = (int)$oFunction['ccn2'];
        $iNPath = (int)$oFunction['npath'];
        $iLoc = (int)$oFunction['lloc'];

        // Sums
        $this->appendClassTotalCNN($sClass, (int)$iCcn * $iLoc);
        $this->appendClassTotalCrapIndex($sClass, (int)$iCrap * $iLoc);
        $this->appendClassTotalNPath($sClass, (int)$iNPath * $iLoc);
        $this->appendClassTotalLLOC($sClass, $iLoc);

        // Max
        $this->updateClassMaxCCN($sClass, $iCcn);
        $this->updateClassMaxCrapIndex($sClass, $iCrap);
        $this->updateClassMaxNPath($sClass, $iNPath);
        $this->updateClassMaxLLOC($sClass, $iLoc);

        $this->setGlobalValues($iCcn, $iCrap, $iNPath, $iLoc);
    }
protected function _readFunctionMetrics($sClass, $oFunction)
    {
        $iCcn = (int)$oFunction['ccn'];
        $iCrap = (int)$oFunction['ccn2'];
        $iNPath = (int)$oFunction['npath'];
        $iLoc = (int)$oFunction['lloc'];

        // Sums
        $this->appendClassTotalCNN($sClass, (int)$iCcn * $iLoc);
        $this->appendClassTotalCrapIndex($sClass, (int)$iCrap * $iLoc);
        $this->appendClassTotalNPath($sClass, (int)$iNPath * $iLoc);
        $this->appendClassTotalLLOC($sClass, $iLoc);

        // Max
        $this->updateClassMaxCCN($sClass, $iCcn);
        $this->updateClassMaxCrapIndex($sClass, $iCrap);
        $this->updateClassMaxNPath($sClass, $iNPath);
        $this->updateClassMaxLLOC($sClass, $iLoc);

        $this->setGlobalValues($iCcn, $iCrap, $iNPath, $iLoc);
    }
protected function _readFunctionMetrics ( $ sClass , $ oFunction ) { $ iCcn = ( int ) $ oFunction [ 'ccn' ] ; $ iCrap = ( int ) $ oFunction [ 'ccn2' ] ; $ iNPath = ( int ) $ oFunction [ 'npath' ] ; $ iLoc = ( int ) $ oFunction [ 'lloc' ] ; // Sums $ this -> appendClassTotalCNN ( $ sClass , ( int ) $ iCcn * $ iLoc ) ; $ this -> appendClassTotalCrapIndex ( $ sClass , ( int ) $ iCrap * $ iLoc ) ; $ this -> appendClassTotalNPath ( $ sClass , ( int ) $ iNPath * $ iLoc ) ; $ this -> appendClassTotalLLOC ( $ sClass , $ iLoc ) ; // Max $ this -> updateClassMaxCCN ( $ sClass , $ iCcn ) ; $ this -> updateClassMaxCrapIndex ( $ sClass , $ iCrap ) ; $ this -> updateClassMaxNPath ( $ sClass , $ iNPath ) ; $ this -> updateClassMaxLLOC ( $ sClass , $ iLoc ) ; $ this -> setGlobalValues ( $ iCcn , $ iCrap , $ iNPath , $ iLoc ) ; }
To make metrics analysis for class

@param string $sClass    class name
@param object $oFunction class method metrics
To make metrics analysis for class