Skip to content
This repository was archived by the owner on Oct 12, 2024. It is now read-only.

Commit 215aeb1

Browse files
authored
Update Element.php
1 parent 37abd55 commit 215aeb1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/Element.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,14 @@ class Element extends \DOMElement implements XPathAware
2828
* @return Element
2929
*/
3030
public function appendTextNode($name, $value)
31-
{
31+
{
3232
$el = new self($name);
3333
$element = $this->appendChild($el);
3434
assert($element instanceof Element);
3535

3636
$element->appendChild(
3737
$this->owner()->createTextNode($value)
3838
);
39-
40-
41-
42-
4339
return $element;
4440
}
4541

0 commit comments

Comments
 (0)