Passed
Push — master ( 7fec9e...1156c1 )
by Tim
01:26
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/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.
src/XML/Assert/DayTrait.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: ---DD with optional timezone representation
16 16
      */
17
-    private static string $day_regex  = '/^
17
+    private static string $day_regex = '/^
18 18
         ---
19 19
         (0[1-9]|1[1-9]|2[1-9]|3[01])
20 20
         ([+-]([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)
Please login to merge, or discard this patch.
src/XMLSchema/XML/AbstractAnyType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
 
22 22
 
23 23
     /** The namespace-attribute for the xs:any element */
24
-    public const string|array XS_ANY_ELT_NAMESPACE = NS::ANY;
24
+    public const string | array XS_ANY_ELT_NAMESPACE = NS::ANY;
25 25
 
26 26
     /** The namespace-attribute for the xs:anyAttribute element */
27
-    public const string|array XS_ANY_ATTR_NAMESPACE = NS::ANY;
27
+    public const string | array XS_ANY_ATTR_NAMESPACE = NS::ANY;
28 28
 
29 29
 
30 30
     /**
Please login to merge, or discard this patch.