Skip to content

Commit 6c0500d

Browse files
Remove superfluous code
1 parent 212fa47 commit 6c0500d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Report/Xml/Totals.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111

1212
use function sprintf;
1313
use DOMElement;
14-
use DOMNode;
1514
use SebastianBergmann\CodeCoverage\Util\Percentage;
1615

1716
/**
1817
* @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
1918
*/
2019
final readonly class Totals
2120
{
22-
private DOMNode $container;
2321
private DOMElement $linesNode;
2422
private DOMElement $methodsNode;
2523
private DOMElement $functionsNode;
@@ -28,8 +26,7 @@
2826

2927
public function __construct(DOMElement $container)
3028
{
31-
$this->container = $container;
32-
$dom = $container->ownerDocument;
29+
$dom = $container->ownerDocument;
3330

3431
$this->linesNode = $dom->createElementNS(
3532
'https://schema.phpunit.de/coverage/1.0',
@@ -63,11 +60,6 @@ public function __construct(DOMElement $container)
6360
$container->appendChild($this->traitsNode);
6461
}
6562

66-
public function container(): DOMNode
67-
{
68-
return $this->container;
69-
}
70-
7163
public function setNumLines(int $loc, int $cloc, int $ncloc, int $executable, int $executed): void
7264
{
7365
$this->linesNode->setAttribute('total', (string) $loc);

0 commit comments

Comments
 (0)