Skip to content

Commit 6c8d035

Browse files
committed
fix
1 parent fd27049 commit 6c8d035

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Report/Xml/Facade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010
namespace SebastianBergmann\CodeCoverage\Report\Xml;
1111

12-
use XMLWriter;
1312
use const DIRECTORY_SEPARATOR;
1413
use function count;
1514
use function dirname;
@@ -35,6 +34,7 @@
3534
use SebastianBergmann\CodeCoverage\WriteOperationFailedException;
3635
use SebastianBergmann\CodeCoverage\XmlException;
3736
use SebastianBergmann\Environment\Runtime;
37+
use XMLWriter;
3838

3939
/**
4040
* @phpstan-import-type ProcessedClassType from File
@@ -160,9 +160,10 @@ private function processFile(FileNode $file, Directory $context): void
160160
$this->processFunction($function, $fileReport);
161161
}
162162

163-
$writer = new XMLWriter();
163+
$writer = new XMLWriter;
164164
$writer->openMemory();
165165
$coverageNode = $fileReport->lineCoverageNode();
166+
166167
foreach ($file->lineCoverageData() as $line => $tests) {
167168
if (!is_array($tests) || count($tests) === 0) {
168169
continue;

src/Report/Xml/File.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ public function lineCoverageNode(): DOMElement
6969
);
7070

7171
assert($lineNode instanceof DOMElement);
72+
7273
return $lineNode;
7374
}
7475

0 commit comments

Comments
 (0)