Skip to content

Commit

Permalink
Fix scrutinizer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Feb 2, 2025
1 parent 709f0b5 commit b954b1c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/XML/xenc/EncryptedData.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use SimpleSAML\XML\{SchemaValidatableElementInterface, SchemaValidatableElementTrait};
use SimpleSAML\XML\Type\{AnyURIValue, IDValue, StringValue};
use SimpleSAML\XMLSecurity\XML\ds\KeyInfo;
use SimpleSAML\XMLSecurity\XML\xenc\{CipherData, EncryptionMethod};

use function array_pop;

Expand Down
2 changes: 1 addition & 1 deletion src/XML/xenc11/AbstractKeyDerivationMethodType.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function fromXML(DOMElement $xml): static
Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class);

return new static(
self::getOptionalAttribute($xml, 'Algorithm', AnyURIValue::class, null),
self::getAttribute($xml, 'Algorithm', AnyURIValue::class),
self::getChildElementsFromXML($xml),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/XML/xenc11/MGF.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function fromXML(DOMElement $xml): static
Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class);

return new static(
self::getOptionalAttribute($xml, 'Algorithm', AnyURIValue::class, null),
self::getAttribute($xml, 'Algorithm', AnyURIValue::class),
);
}
}
2 changes: 1 addition & 1 deletion src/XML/xenc11/OtherSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public static function fromXML(DOMElement $xml): static
Assert::maxCount($parameter, 1, TooManyElementsException::class);

return new static(
self::getOptionalAttribute($xml, 'Algorithm', AnyURIValue::class, null),
self::getAttribute($xml, 'Algorithm', AnyURIValue::class),
array_pop($parameter),
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/XML/xenc11/PRF.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function fromXML(DOMElement $xml): static
Assert::same($xml->namespaceURI, static::getNamespaceURI(), InvalidDOMElementException::class);

return new static(
self::getOptionalAttribute($xml, 'Algorithm', AnyURIValue::class, null),
self::getAttribute($xml, 'Algorithm', AnyURIValue::class),
);
}
}

0 comments on commit b954b1c

Please sign in to comment.