Code Duplication    Length = 5-5 lines in 2 locations

src/Hal/Report/Html/template/oop.php 1 location

@@ 12-16 (lines=5) @@
9
        array_push($lcom, $c['lcom']);
10
    }
11
}
12
if (sizeof($lcom) > 0) {
13
    $lcom = round(array_sum($lcom) / sizeof($lcom), 2);
14
} else {
15
    $lcom = 0;
16
}
17
?>
18
19

src/Hal/Metric/Consolidated.php 1 location

@@ 109-113 (lines=5) @@
106
        $sum->nbPackages = count($packages);
107
108
        foreach ($avg as &$a) {
109
            if (sizeof($a) > 0) {
110
                $a = round(array_sum($a) / sizeof($a), 2);
111
            } else {
112
                $a = 0;
113
            }
114
        }
115
116
        $avg->distance = 0;