File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
PHP/CodeCoverage/Report/HTML/Node Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -585,11 +585,13 @@ protected function calculateStatistics()
585585 $ lineNumber ++;
586586 }
587587
588- foreach ($ this ->classes as $ className => $ class ) {
589- foreach ($ class ['methods ' ] as $ method ) {
588+ foreach ($ this ->classes as $ className => & $ class ) {
589+ foreach ($ class ['methods ' ] as & $ method ) {
590590 if ($ method ['executedLines ' ] == $ method ['executableLines ' ]) {
591591 $ this ->numTestedMethods ++;
592592 }
593+
594+ $ class ['ccn ' ] += $ method ['ccn ' ];
593595 }
594596
595597 if ($ className != '* ' ) {
@@ -796,7 +798,8 @@ protected function processClasses()
796798 'methods ' => array (),
797799 'startLine ' => $ class ['startLine ' ],
798800 'executableLines ' => 0 ,
799- 'executedLines ' => 0
801+ 'executedLines ' => 0 ,
802+ 'ccn ' => 0
800803 );
801804
802805 $ this ->startLines [$ class ['startLine ' ]] = &$ this ->classes [$ className ];
You can’t perform that action at this time.
0 commit comments