Passed
Push — master ( 8413b2...00f101 )
by Tim
02:19
created
src/XML/ExtendableAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      */
101 101
     protected static function getAttributesNSFromXML(
102 102
         DOMElement $xml,
103
-        NamespaceEnum|array|null $namespace = null,
103
+        NamespaceEnum | array | null $namespace = null,
104 104
     ): array {
105 105
         $namespace = $namespace ?? self::XS_ANY_ATTR_NAMESPACE;
106 106
         $exclusionList = self::getAttributeExclusions();
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
              * @param \SimpleSAML\XML\Attribute $elt
198 198
              * @return string|null
199 199
              */
200
-            function (Attribute $attr) {
200
+            function(Attribute $attr) {
201 201
                 return $attr->getNamespaceURI();
202 202
             },
203 203
             $attributes,
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
      *   \SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum
261 261
      * )[]
262 262
      */
263
-    public function getAttributeNamespace(): array|NamespaceEnum
263
+    public function getAttributeNamespace(): array | NamespaceEnum
264 264
     {
265 265
         Assert::true(
266 266
             defined('self::XS_ANY_ATTR_NAMESPACE'),
Please login to merge, or discard this patch.
src/XML/ExtendableElementTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      */
49 49
     protected static function getChildElementsFromXML(
50 50
         DOMElement $xml,
51
-        NamespaceEnum|array|null $namespace = null,
51
+        NamespaceEnum | array | null $namespace = null,
52 52
     ): array {
53 53
         $namespace = $namespace ?? self::XS_ANY_ELT_NAMESPACE;
54 54
         $exclusionList = self::getElementExclusions();
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
             /**
141 141
              * @return string|null
142 142
              */
143
-            function (AbstractElement|Chunk $elt): ?string {
143
+            function(AbstractElement | Chunk $elt): ?string {
144 144
                 return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI();
145 145
             },
146 146
             $elements,
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      *   \SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum
212 212
      * )
213 213
      */
214
-    public function getElementNamespace(): array|NamespaceEnum
214
+    public function getElementNamespace(): array | NamespaceEnum
215 215
     {
216 216
         Assert::true(
217 217
             defined('self::XS_ANY_ELT_NAMESPACE'),
Please login to merge, or discard this patch.