Completed
Push — master ( f72cfb...4ef12f )
by Tim
21s queued 18s
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,
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
     /**
258 258
      * @return array<\SimpleSAML\XMLSchema\XML\xs\NamespaceEnum|string>|\SimpleSAML\XMLSchema\XML\xs\NamespaceEnum
259 259
      */
260
-    public function getAttributeNamespace(): array|NamespaceEnum
260
+    public function getAttributeNamespace(): array | NamespaceEnum
261 261
     {
262 262
         Assert::true(
263 263
             defined('self::XS_ANY_ATTR_NAMESPACE'),
Please login to merge, or discard this patch.
src/XML/Utils/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/Assert/MonthTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @var string
18 18
      */
19
-    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';
19
+    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';
20 20
 
21 21
 
22 22
     /**
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      *
17 17
      * @var string
18 18
      */
19
-    private static string $day_regex  = '/^
19
+    private static string $day_regex = '/^
20 20
         ---
21 21
         (0[1-9]|1[1-9]|2[1-9]|3[01])
22 22
         ([+-]([0-1][0-9]|2[0-4]):(0[0-9]|[1-5][0-9])|Z)
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
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 trait YearMonthTrait
13 13
 {
14 14
     /** @var string */
15
-    private static string $yearmonth_regex  = '/^
15
+    private static string $yearmonth_regex = '/^
16 16
         -?
17 17
         ([1-9][0-9]*|[0-9]{4})
18 18
         -
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
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      *
25 25
      * @var string
26 26
      */
27
-    private static string $date_regex  = '/^
27
+    private static string $date_regex = '/^
28 28
         -?
29 29
         ([1-9][0-9]*|[0-9]{4})
30 30
         -
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,
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
     /**
209 209
      * @return array<\SimpleSAML\XMLSchema\XML\xs\NamespaceEnum|string>|\SimpleSAML\XMLSchema\XML\xs\NamespaceEnum
210 210
      */
211
-    public function getElementNamespace(): array|NamespaceEnum
211
+    public function getElementNamespace(): array | NamespaceEnum
212 212
     {
213 213
         Assert::true(
214 214
             defined('self::XS_ANY_ELT_NAMESPACE'),
Please login to merge, or discard this patch.
src/XMLSchema/XML/xs/AbstractElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function __construct(
48 48
         ?NCNameValue $name = null,
49 49
         ?QNameValue $reference = null,
50
-        protected LocalSimpleType|LocalComplexType|null $localType = null,
50
+        protected LocalSimpleType | LocalComplexType | null $localType = null,
51 51
         protected array $identityConstraint = [],
52 52
         protected ?QNameValue $type = null,
53 53
         protected ?QNameValue $substitutionGroup = null,
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
      *
101 101
      * @return \SimpleSAML\XMLSchema\XML\xs\LocalSimpleType|\SimpleSAML\XMLSchema\XML\xs\LocalComplexType|null
102 102
      */
103
-    public function getLocalType(): LocalSimpleType|LocalComplexType|null
103
+    public function getLocalType(): LocalSimpleType | LocalComplexType | null
104 104
     {
105 105
         return $this->localType;
106 106
     }
Please login to merge, or discard this patch.
src/XMLSchema/XML/xs/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.