$iCcnMax = $aClass['max']['cnn']; $iCrapMax = $aClass['max']['crap']; $iNpathMax = $aClass['max']['npath']; $iLoc = $aClass['sum']['locExecutable']; echo "Total for {$sClass}" . PHP_EOL; echo "\tAvg cnn = {$iCcn} (max: {$iCcnMax})" . PHP_EOL; echo "\tAvg crap = {$iCrap} (max: {$iCrapMax})" . PHP_EOL; echo "\tAvg npath = {$iNpath} (max: {$iNpathMax})" . PHP_EOL; echo "\tAvg locExecutable = {$iLoc}" . PHP_EOL . PHP_EOL; } } } try { $oMetrics = new Metrics($sMetricsXml); $oMetrics->read(); $oMetrics->echoResults(); } catch (Exception $oE) { $sMsg = $oE->getMessage() . ' ' . $oE->getTraceAsString(); echo $sMsg; } /** * Based off of http://www.artima.com/weblogs/viewpost.jsp?thread=210575 * comp(m) = cyclomatic complexity * cov(m) = code coverage * * C.R.A.P. Level is based off of the file and not the method. * * @param int $cyclomatic_complexity Enter description here... * @param int $code_coverage Enter description here... * * @return unknown_type