Skip to content

Commit e23ada2

Browse files
committed
Remove array test; the properties are always an array
1 parent 3dd2911 commit e23ada2

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/Signature.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,16 +1052,12 @@ protected function processReference(DOMElement $ref): bool
10521052
$includeCommentNodes = false;
10531053

10541054
$xp = XP::getXPath($ref->ownerDocument);
1055-
if (!empty($this->idNS) && is_array($this->idNS)) {
1056-
foreach ($this->idNS as $nspf => $ns) {
1057-
$xp->registerNamespace($nspf, $ns);
1058-
}
1055+
foreach ($this->idNS as $nspf => $ns) {
1056+
$xp->registerNamespace($nspf, $ns);
10591057
}
10601058
$iDlist = '@Id="' . $identifier . '"';
1061-
if (is_array($this->idKeys)) {
1062-
foreach ($this->idKeys as $idKey) {
1063-
$iDlist .= " or @$idKey='$identifier'";
1064-
}
1059+
foreach ($this->idKeys as $idKey) {
1060+
$iDlist .= " or @$idKey='$identifier'";
10651061
}
10661062
$query = '//*[' . $iDlist . ']';
10671063
$dataObject = $xp->query($query)->item(0);

0 commit comments

Comments
 (0)