File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,8 @@ class Consolidated
3636     */ 
3737    public  function  __construct (Metrics $ metrics
3838    {
39+         $ classMetrics
40+ 
3941        // grouping results 
4042        $ classes
4143        $ functions
@@ -46,6 +48,7 @@ public function __construct(Metrics $metrics)
4648            $ classItemget_class ($ item
4749            if  (ClassMetric::class === $ classItem
4850                $ classes$ itemall ();
51+                 $ classMetrics$ item
4952            } elseif  (InterfaceMetric::class === $ classItem
5053                $ nbInterfaces
5154            } elseif  (FunctionMetric::class === $ classItem
@@ -82,7 +85,7 @@ public function __construct(Metrics $metrics)
8285            'mi '  => [],
8386        ];
8487
85-         foreach  ($ metrics -> all ()  as  $ key$ item
88+         foreach  ($ classMetrics as  $ key$ item
8689            $ sumloc  += $ itemget ('loc ' );
8790            $ sumlloc  += $ itemget ('lloc ' );
8891            $ sumcloc  += $ itemget ('cloc ' );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments