Skip to content

Commit 92e2831

Browse files
committed
Fix case
1 parent 42a99a8 commit 92e2831

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/XML/ds/Transform.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,11 @@ public static function fromXML(DOMElement $xml): static
130130
public function toXML(?DOMElement $parent = null): DOMElement
131131
{
132132
$e = $this->instantiateParentElement($parent);
133-
134-
$algorithm = $this->getAlgorithm();
135-
$e->setAttribute('Algorithm', $algorithm);
133+
$e->setAttribute('Algorithm', $this->getAlgorithm());
136134

137135
switch ($algorithm) {
138136
case C::XPATH10_URI:
139-
$this->getXpath()?->toXML($e);
137+
$this->getXPath()?->toXML($e);
140138
break;
141139
case C::C14N_EXCLUSIVE_WITH_COMMENTS:
142140
case C::C14N_EXCLUSIVE_WITHOUT_COMMENTS:

0 commit comments

Comments
 (0)