We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 480ab39 commit f0b16b3Copy full SHA for f0b16b3
src/Report/Xml/File.php
@@ -31,16 +31,12 @@ public function __construct(DOMElement $context)
31
32
public function totals(): Totals
33
{
34
- $totalsContainer = $this->contextNode->firstChild;
35
-
36
- if ($totalsContainer === null) {
37
- $totalsContainer = $this->contextNode->appendChild(
38
- $this->dom->createElementNS(
39
- Facade::XML_NAMESPACE,
40
- 'totals',
41
- ),
42
- );
43
- }
+ $totalsContainer = $this->contextNode->appendChild(
+ $this->dom->createElementNS(
+ Facade::XML_NAMESPACE,
+ 'totals',
+ ),
+ );
44
45
assert($totalsContainer instanceof DOMElement);
46
0 commit comments