diff --git a/src/CodeCoverage.php b/src/CodeCoverage.php index 5725917be..e3a57fdc7 100644 --- a/src/CodeCoverage.php +++ b/src/CodeCoverage.php @@ -322,7 +322,9 @@ public function append(array $data, $id = null, $append = true, $linesToBeCovere foreach ($lines as $k => $v) { if ($v == 1) { - $this->data[$file][$k][] = $id; + if (empty($this->data[$file][$k]) || !in_array($id, $this->data[$file][$k])) { + $this->data[$file][$k][] = $id; + } } } }