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 6fa7c78 commit a5d3a88Copy full SHA for a5d3a88
src/Report/Xml/BuildInformation.php
@@ -57,19 +57,12 @@ public function __construct(
57
58
private function nodeByName(string $name): DOMElement
59
{
60
- $node = $this->contextNode->getElementsByTagNameNS(
61
- Facade::XML_NAMESPACE,
62
- $name,
63
- )->item(0);
64
-
65
- if ($node === null) {
66
- $node = $this->contextNode->appendChild(
67
- $this->contextNode->ownerDocument->createElementNS(
68
69
70
- ),
71
- );
72
- }
+ $node = $this->contextNode->appendChild(
+ $this->contextNode->ownerDocument->createElementNS(
+ Facade::XML_NAMESPACE,
+ $name,
+ ),
+ );
73
74
assert($node instanceof DOMElement);
75
0 commit comments