library/MC_Metrics.php
public function appendClassTotalCrapIndex($sClassName, $iCrapIndex)
    {
        if (!isset($this->_aStats[$sClassName]['sum']['crap'])) {
            $this->_aStats[$sClassName]['sum']['crap'] = 0;
        }
        $this->_aStats[$sClassName]['sum']['crap'] += $iCrapIndex;
    }
public function appendClassTotalCrapIndex($sClassName, $iCrapIndex)
    {
        if (!isset($this->_aStats[$sClassName]['sum']['crap'])) {
            $this->_aStats[$sClassName]['sum']['crap'] = 0;
        }
        $this->_aStats[$sClassName]['sum']['crap'] += $iCrapIndex;
    }
public function appendClassTotalCrapIndex ( $ sClassName , $ iCrapIndex ) { if ( ! isset ( $ this -> _aStats [ $ sClassName ] [ 'sum' ] [ 'crap' ] ) ) { $ this -> _aStats [ $ sClassName ] [ 'sum' ] [ 'crap' ] = 0 ; } $ this -> _aStats [ $ sClassName ] [ 'sum' ] [ 'crap' ] += $ iCrapIndex ; }
To append total crap index for class

@param string $sClassName class name
@param string $iCrapIndex Crap index
To append total crap index for class