Passed
Push — master ( 7fec9e...1156c1 )
by Tim
01:26
created
src/XML/ExtendableElementTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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 ?? static::XS_ANY_ELT_NAMESPACE;
49 49
         $exclusionList = self::getElementExclusions();
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
             /**
139 139
              * @return string|null
140 140
              */
141
-            function (AbstractElement|Chunk $elt): ?string {
141
+            function(AbstractElement | Chunk $elt): ?string {
142 142
                 return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI();
143 143
             },
144 144
             $elements,
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
     /**
207 207
      * @return string|string[]
208 208
      */
209
-    public function getElementNamespace(): array|string
209
+    public function getElementNamespace(): array | string
210 210
     {
211 211
         Assert::true(
212 212
             defined('static::XS_ANY_ELT_NAMESPACE'),
Please login to merge, or discard this patch.
src/XML/ExtendableAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
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 ?? static::XS_ANY_ATTR_NAMESPACE;
101 101
         $exclusionList = self::getAttributeExclusions();
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
              * @param \SimpleSAML\XML\Attribute $elt
197 197
              * @return string|null
198 198
              */
199
-            function (Attribute $attr) {
199
+            function(Attribute $attr) {
200 200
                 return $attr->getNamespaceURI();
201 201
             },
202 202
             $attributes,
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     /**
256 256
      * @return string[]|string
257 257
      */
258
-    public function getAttributeNamespace(): array|string
258
+    public function getAttributeNamespace(): array | string
259 259
     {
260 260
         Assert::true(
261 261
             defined('static::XS_ANY_ATTR_NAMESPACE'),
Please login to merge, or discard this patch.