Passed
Branch master (b2a4d6)
by Tim
12:05
created
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 list<\SimpleSAML\XML\Attribute> $attributes
95 95
      */
96
-    protected static function getAttributesNSFromXML(DOMElement $xml, string|array $namespace = null): array
96
+    protected static function getAttributesNSFromXML(DOMElement $xml, string | array $namespace = null): array
97 97
     {
98 98
         $namespace = $namespace ?? static::XS_ANY_ATTR_NAMESPACE;
99 99
         $attributes = [];
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
              * @param \SimpleSAML\XML\Attribute $elt
186 186
              * @return string|null
187 187
              */
188
-            function (Attribute $attr) {
188
+            function(Attribute $attr) {
189 189
                 return $attr->getNamespaceURI();
190 190
             },
191 191
             $attributes,
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     /**
239 239
      * @return array|\SimpleSAML\XML\XsNamespace
240 240
      */
241
-    public function getAttributeNamespace(): array|NS
241
+    public function getAttributeNamespace(): array | NS
242 242
     {
243 243
         Assert::true(
244 244
             defined('static::XS_ANY_ATTR_NAMESPACE'),
Please login to merge, or discard this patch.
src/ExtendableElementTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
              * @param \SimpleSAML\XML\ElementInterface $elt
61 61
              * @return string|null
62 62
              */
63
-            function (ElementInterface $elt) {
63
+            function(ElementInterface $elt) {
64 64
                 /** @psalm-var \SimpleSAML\XML\Chunk|\SimpleSAML\XML\AbstractElement $elt */
65 65
                 return ($elt instanceof Chunk) ? $elt->getNamespaceURI() : $elt::getNamespaceURI();
66 66
             },
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
     /**
123 123
      * @return array|\SimpleSAML\XML\XsNamespace
124 124
      */
125
-    public function getElementNamespace(): array|NS
125
+    public function getElementNamespace(): array | NS
126 126
     {
127 127
         Assert::true(
128 128
             defined('static::XS_ANY_ELT_NAMESPACE'),
Please login to merge, or discard this patch.