Skip to content

Commit 5aa04e5

Browse files
committed
Fix code quality
1 parent 9586df9 commit 5aa04e5

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/XML/IdentifierTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ protected function setIdentifier(?IdentifierInterface $identifier): void
5353
*
5454
* @param \DOMElement $xml
5555
* @return \SimpleSAML\SAML2\XML\saml\IdentifierInterface|null
56-
* @throws \SimpleSAML\XMLSchema\Exception\TooManyElementsException if too many child-elements of a type are specified
56+
* @throws \SimpleSAML\XMLSchema\Exception\TooManyElementsException
57+
* if too many child-elements of a type are specified
5758
*/
5859
protected static function getIdentifierFromXML(DOMElement $xml): ?IdentifierInterface
5960
{

src/XML/ecp/RequestAuthenticated.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
use SimpleSAML\XML\{SchemaValidatableElementInterface, SchemaValidatableElementTrait};
1313
use SimpleSAML\XMLSchema\Exception\{InvalidDOMElementException, MissingAttributeException};
1414

15-
use function intval;
16-
use function strval;
17-
1815
/**
1916
* Class representing the ECP RequestAuthenticated element.
2017
*

tests/SAML2/XML/md/RoleDescriptorTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,12 @@ public function testUnmarshallingUnregistered(): void
269269
$element = clone self::$xmlRepresentation->documentElement;
270270
$element->setAttributeNS(C_XSI::NS_XSI, 'xsi:type', 'ssp:UnknownRoleDescriptorType');
271271

272-
$type = new XMLAttribute(C_XSI::NS_XSI, 'xsi', 'type', StringValue::fromString('ssp:UnknownRoleDescriptorType'));
272+
$type = new XMLAttribute(
273+
C_XSI::NS_XSI,
274+
'xsi',
275+
'type',
276+
StringValue::fromString('ssp:UnknownRoleDescriptorType'),
277+
);
273278
$type->toXML($element);
274279

275280
$descriptor = AbstractRoleDescriptor::fromXML($element);

0 commit comments

Comments
 (0)