@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | protected static function getChildElementsFromXML( |
45 | 45 | DOMElement $xml, |
46 | - string|array|null $namespace = null, |
|
46 | + string | array | null $namespace = null, |
|
47 | 47 | ): array { |
48 | 48 | $namespace = $namespace ?? self::XS_ANY_ELT_NAMESPACE; |
49 | 49 | $exclusionList = self::getElementExclusions(); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | /** |
136 | 136 | * @return string|null |
137 | 137 | */ |
138 | - function (AbstractElement|Chunk $elt): ?string { |
|
138 | + function(AbstractElement | Chunk $elt): ?string { |
|
139 | 139 | return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI(); |
140 | 140 | }, |
141 | 141 | $elements, |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | /** |
204 | 204 | * @return string|string[] |
205 | 205 | */ |
206 | - public function getElementNamespace(): array|string |
|
206 | + public function getElementNamespace(): array | string |
|
207 | 207 | { |
208 | 208 | Assert::true( |
209 | 209 | defined('self::XS_ANY_ELT_NAMESPACE'), |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | */ |
96 | 96 | protected static function getAttributesNSFromXML( |
97 | 97 | DOMElement $xml, |
98 | - string|array|null $namespace = null, |
|
98 | + string | array | null $namespace = null, |
|
99 | 99 | ): array { |
100 | 100 | $namespace = $namespace ?? self::XS_ANY_ATTR_NAMESPACE; |
101 | 101 | $exclusionList = self::getAttributeExclusions(); |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * @param \SimpleSAML\XML\Attribute $elt |
193 | 193 | * @return string|null |
194 | 194 | */ |
195 | - function (Attribute $attr) { |
|
195 | + function(Attribute $attr) { |
|
196 | 196 | return $attr->getNamespaceURI(); |
197 | 197 | }, |
198 | 198 | $attributes, |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | /** |
252 | 252 | * @return string[]|string |
253 | 253 | */ |
254 | - public function getAttributeNamespace(): array|string |
|
254 | + public function getAttributeNamespace(): array | string |
|
255 | 255 | { |
256 | 256 | Assert::true( |
257 | 257 | defined('self::XS_ANY_ATTR_NAMESPACE'), |