Skip to content

Commit

Permalink
Fix case
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Dec 18, 2024
1 parent 42a99a8 commit 92e2831
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/XML/ds/Transform.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,11 @@ public static function fromXML(DOMElement $xml): static
public function toXML(?DOMElement $parent = null): DOMElement
{
$e = $this->instantiateParentElement($parent);

$algorithm = $this->getAlgorithm();
$e->setAttribute('Algorithm', $algorithm);
$e->setAttribute('Algorithm', $this->getAlgorithm());

switch ($algorithm) {
case C::XPATH10_URI:
$this->getXpath()?->toXML($e);
$this->getXPath()?->toXML($e);
break;
case C::C14N_EXCLUSIVE_WITH_COMMENTS:
case C::C14N_EXCLUSIVE_WITHOUT_COMMENTS:
Expand Down

0 comments on commit 92e2831

Please sign in to comment.