Passed
Push — master ( def12a...9cf986 )
by Tim
01:51
created
src/ExtendableElementTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return list<\SimpleSAML\XML\SerializableElementInterface> $elements
44 44
      */
45
-    protected static function getChildElementsFromXML(DOMElement $xml, NS|array|null $namespace = null): array
45
+    protected static function getChildElementsFromXML(DOMElement $xml, NS | array | null $namespace = null): array
46 46
     {
47 47
         $namespace = $namespace ?? self::XS_ANY_ELT_NAMESPACE;
48 48
         $exclusionList = self::getElementExclusions();
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
              * @param \SimpleSAML\XML\SerializableElementInterface $elt
135 135
              * @return string|null
136 136
              */
137
-            function (SerializableElementInterface $elt) {
137
+            function(SerializableElementInterface $elt) {
138 138
                 return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI();
139 139
             },
140 140
             $elements,
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
     /**
203 203
      * @return array|\SimpleSAML\XML\XsNamespace
204 204
      */
205
-    public function getElementNamespace(): array|NS
205
+    public function getElementNamespace(): array | NS
206 206
     {
207 207
         Assert::true(
208 208
             defined('self::XS_ANY_ELT_NAMESPACE'),
Please login to merge, or discard this patch.
src/ExtendableAttributesTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @return array<int, \SimpleSAML\XML\Attribute> $attributes
95 95
      */
96
-    protected static function getAttributesNSFromXML(DOMElement $xml, NS|array|null $namespace = null): array
96
+    protected static function getAttributesNSFromXML(DOMElement $xml, NS | array | null $namespace = null): array
97 97
     {
98 98
         $namespace = $namespace ?? self::XS_ANY_ATTR_NAMESPACE;
99 99
         $exclusionList = self::getAttributeExclusions();
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
              * @param \SimpleSAML\XML\Attribute $elt
181 181
              * @return string|null
182 182
              */
183
-            function (Attribute $attr) {
183
+            function(Attribute $attr) {
184 184
                 return $attr->getNamespaceURI();
185 185
             },
186 186
             $attributes,
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
     /**
241 241
      * @return array|\SimpleSAML\XML\XsNamespace
242 242
      */
243
-    public function getAttributeNamespace(): array|NS
243
+    public function getAttributeNamespace(): array | NS
244 244
     {
245 245
         Assert::true(
246 246
             defined('self::XS_ANY_ATTR_NAMESPACE'),
Please login to merge, or discard this patch.