src/Statistics/ProjectStatistics.php
public function total() : array
    {
        $stats = $this->generate();

        return [
            'Total',
            $stats->sum('number_of_classes'),
            $stats->sum('methods'),
            round($stats->avg('methods_per_class'), 2),
            $stats->sum('lines'),
            $stats->sum('loc'),
            round($stats->avg('loc_per_method'), 2),
        ];
    }
public function total() : array
    {
        $stats = $this->generate();

        return [
            'Total',
            $stats->sum('number_of_classes'),
            $stats->sum('methods'),
            round($stats->avg('methods_per_class'), 2),
            $stats->sum('lines'),
            $stats->sum('loc'),
            round($stats->avg('loc_per_method'), 2),
        ];
    }
public function total ( ) : array { $ stats = $ this -> generate ( ) ; return [ 'Total' , $ stats -> sum ( 'number_of_classes' ) , $ stats -> sum ( 'methods' ) , round ( $ stats -> avg ( 'methods_per_class' ) , 2 ) , $ stats -> sum ( 'lines' ) , $ stats -> sum ( 'loc' ) , round ( $ stats -> avg ( 'loc_per_method' ) , 2 ) , ] ; }
Create Total Row for current Project Statistics.

@return array
Create Total Row for current Project Statistics .