Skip to content

Commit

Permalink
SimpleXMLElementPlugin: Coverage tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
jnvsor committed Aug 26, 2024
1 parent 8976da1 commit 7dd380d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Parser/SimpleXMLElementPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ protected function getAttributeRepresentation(SimpleXMLElementValue $element, Si
*
* So let's just give up and stick to aliases because fuck that mess!
*/
protected function getChildrenRepresentation(SimpleXMLElementValue $element, SimpleXMLElement $var): ?Representation
protected function getChildrenRepresentation(SimpleXMLElementValue $element, SimpleXMLElement $var): Representation
{
$parser = $this->getParser();
$namespaces = \array_merge(['' => null], $var->getDocNamespaces());
Expand Down Expand Up @@ -243,11 +243,7 @@ protected function getChildrenRepresentation(SimpleXMLElementValue $element, Sim
}
}

if ($c->contents) {
return $c;
}

return null;
return $c;
}

/**
Expand Down

0 comments on commit 7dd380d

Please sign in to comment.