Passed
Branch feature/php8.3 (4d3b0a)
by Tim
17:15
created
src/XMLSchema/XML/AbstractLocalElement.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(
37 37
         ?NCNameValue $name = null,
38 38
         ?QNameValue $reference = null,
39
-        LocalSimpleType|LocalComplexType|null $localType = null,
39
+        LocalSimpleType | LocalComplexType | null $localType = null,
40 40
         array $identityConstraint = [],
41 41
         ?QNameValue $type = null,
42 42
         ?MinOccursValue $minOccurs = null,
@@ -51,21 +51,21 @@  discard block
 block discarded – undo
51 51
         array $namespacedAttributes = [],
52 52
     ) {
53 53
         parent::__construct(
54
-            name: $name,
55
-            reference: $reference,
56
-            localType: $localType,
57
-            identityConstraint: $identityConstraint,
58
-            type: $type,
59
-            minOccurs: $minOccurs,
60
-            maxOccurs: $maxOccurs,
61
-            default: $default,
62
-            fixed: $fixed,
63
-            nillable: $nillable,
64
-            block: $block,
65
-            form: $form,
66
-            annotation: $annotation,
67
-            id: $id,
68
-            namespacedAttributes: $namespacedAttributes,
54
+            name : $name,
55
+            reference : $reference,
56
+            localType : $localType,
57
+            identityConstraint : $identityConstraint,
58
+            type : $type,
59
+            minOccurs : $minOccurs,
60
+            maxOccurs : $maxOccurs,
61
+            default : $default,
62
+            fixed : $fixed,
63
+            nillable : $nillable,
64
+            block : $block,
65
+            form : $form,
66
+            annotation : $annotation,
67
+            id : $id,
68
+            namespacedAttributes : $namespacedAttributes,
69 69
         );
70 70
     }
71 71
 }
Please login to merge, or discard this patch.
src/XMLSchema/Type/Interface/AbstractAnySimpleType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      * @param \SimpleSAML\XMLSchema\Type\Interface\ValueTypeInterface|string $other
143 143
      * @return bool
144 144
      */
145
-    public function equals(ValueTypeInterface|string $other): bool
145
+    public function equals(ValueTypeInterface | string $other): bool
146 146
     {
147 147
         if (is_string($other)) {
148 148
             $other = static::fromString($other);
Please login to merge, or discard this patch.
src/XPath/XPathFilter.php 2 patches
Indentation   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,6 @@  discard block
 block discarded – undo
84 84
              *
85 85
              * Use possessive quantifiers (i.e. *+ and ++ instead of * and + respectively) to prevent backtracking
86 86
              * and thus prevent a ReDOS.
87
-
88 87
              * '/([a-z]++(?>-[a-z]++)*+)\s*+\(/'
89 88
              * (           # Start a capturing group
90 89
              *   [a-z]++   # Match one or more lower-case alpha characters
@@ -95,7 +94,7 @@  discard block
 block discarded – undo
95 94
              * )           # End of the capturing group
96 95
              * \s*+        # Match zero or more whitespace characters, possessively
97 96
              * \(          # Match an opening parenthesis
98
-            */
97
+             */
99 98
 
100 99
             '/([a-z]++(?>-[a-z]++)*+)\\s*+\\(/',
101 100
             $xpathExpression,
@@ -146,7 +145,7 @@  discard block
 block discarded – undo
146 145
              * )           # End of the capturing group
147 146
              * \s*+        # Match zero or more whitespace characters, possessively
148 147
              * \(          # Match an opening parenthesis
149
-            */
148
+             */
150 149
 
151 150
             '/([a-z]++(?>-[a-z]++)*+)\\s*+::/',
152 151
             $xpathExpression,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
          */
47 47
         $res = preg_replace(
48 48
             '/(["\'])(?:(?!\\1).)*+\\1/',
49
-            "\\1\\1",   // Replace the content with two of the quotes that were matched
49
+            "\\1\\1", // Replace the content with two of the quotes that were matched
50 50
             $input,
51 51
         );
52 52
 
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
@@ -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 ?? self::XS_ANY_ELT_NAMESPACE;
49 49
         $exclusionList = self::getElementExclusions();
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'),
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 ?? self::XS_ANY_ATTR_NAMESPACE;
101 101
         $exclusionList = self::getAttributeExclusions();
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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'),
Please login to merge, or discard this patch.
src/XPath/XPath.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      *
31 31
      * @throws \RuntimeException If no DOM document is available.
32 32
      */
33
-    public static function findElement(DOMNode $ref, string $name): DOMElement|false
33
+    public static function findElement(DOMNode $ref, string $name): DOMElement | false
34 34
     {
35 35
         $doc = $ref instanceof DOMDocument ? $ref : $ref->ownerDocument;
36 36
         if ($doc === null) {
Please login to merge, or discard this patch.
src/XML/Assert/DateTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * and the least upper bound of the interval is the timeline point represented (noncanonically) by:
23 23
      * '-' yyyy '-' mm '-' dd 'T24:00:00' zzzzzz?.
24 24
      */
25
-    private static string $date_regex  = '/^
25
+    private static string $date_regex = '/^
26 26
         -?
27 27
         ([1-9][0-9]*|[0-9]{4})
28 28
         -
Please login to merge, or discard this patch.
src/XML/Assert/YearMonthTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
  */
12 12
 trait YearMonthTrait
13 13
 {
14
-    private static string $yearmonth_regex  = '/^
14
+    private static string $yearmonth_regex = '/^
15 15
         -?
16 16
         ([1-9][0-9]*|[0-9]{4})
17 17
         -
Please login to merge, or discard this patch.
src/XML/Assert/MonthTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     /**
15 15
      * Format --MM with optional timezone representation
16 16
      */
17
-    private static string $month_regex  = '/^--(0[1-9]|1[012])((\+|-)([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?$/D';
17
+    private static string $month_regex = '/^--(0[1-9]|1[012])((\+|-)([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)?$/D';
18 18
 
19 19
 
20 20
     /**
Please login to merge, or discard this patch.