@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | * @param \SimpleSAML\XML\ElementInterface $elt |
59 | 59 | * @return string|null |
60 | 60 | */ |
61 | - function (ElementInterface $elt) { |
|
61 | + function(ElementInterface $elt) { |
|
62 | 62 | /** @psalm-var \SimpleSAML\XML\Chunk|\SimpleSAML\XML\AbstractElement $elt */ |
63 | 63 | return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI(); |
64 | 64 | }, |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | /** |
123 | 123 | * @return array|string |
124 | 124 | */ |
125 | - public function getElementNamespace(): array|string |
|
125 | + public function getElementNamespace(): array | string |
|
126 | 126 | { |
127 | 127 | Assert::true( |
128 | 128 | defined('static::XS_ANY_ELT_NAMESPACE'), |
@@ -19,7 +19,7 @@ |
||
19 | 19 | protected static ?string $testedClass; |
20 | 20 | |
21 | 21 | /** @var array|null */ |
22 | - protected static ?array $arrayRepresentation; |
|
22 | + protected static ? array $arrayRepresentation; |
|
23 | 23 | |
24 | 24 | |
25 | 25 | /** |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | * |
92 | 92 | * @return list<\SimpleSAML\XML\Attribute> $attributes |
93 | 93 | */ |
94 | - protected static function getAttributesNSFromXML(DOMElement $xml, string|array $namespace = null): array |
|
94 | + protected static function getAttributesNSFromXML(DOMElement $xml, string | array $namespace = null): array |
|
95 | 95 | { |
96 | 96 | $namespace = $namespace ?? static::XS_ANY_ATTR_NAMESPACE; |
97 | 97 | $attributes = []; |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | * @param \SimpleSAML\XML\Attribute $elt |
185 | 185 | * @return string|null |
186 | 186 | */ |
187 | - function (Attribute $attr) { |
|
187 | + function(Attribute $attr) { |
|
188 | 188 | return $attr->getNamespaceURI(); |
189 | 189 | }, |
190 | 190 | $attributes, |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | /** |
238 | 238 | * @return array|string |
239 | 239 | */ |
240 | - public function getAttributeNamespace(): array|string |
|
240 | + public function getAttributeNamespace(): array | string |
|
241 | 241 | { |
242 | 242 | Assert::true( |
243 | 243 | defined('static::XS_ANY_ATTR_NAMESPACE'), |