Skip to content

Commit

Permalink
Badly named variable mean things were just not working. Gah.
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperaj committed Feb 24, 2020
1 parent 8eae64e commit c4f8340
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Service/FileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ public function getFiles(): array
*/
public function merge(string $path): FileWriter
{
$coverage = new CodeCoverage();
$combinedCoverage = new CodeCoverage();

foreach ($this->files as $file => $coverage) {
$coverage->merge($coverage);
$combinedCoverage->merge($coverage);
}

$this->files = [$path => $coverage];
$this->files = [$path => $combinedCoverage];

return $this;
}
Expand Down

0 comments on commit c4f8340

Please sign in to comment.