Passed
Branch dependabot/github_actions/all-... (95a85b)
by Tim
03:20
created
src/XMLSchema/XML/AbstractSimpleExtensionType.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@
 block discarded – undo
37 37
         array $namespacedAttributes = [],
38 38
     ) {
39 39
         parent::__construct(
40
-            base: $base,
41
-            attributes: $attributes,
42
-            anyAttribute: $anyAttribute,
43
-            annotation: $annotation,
44
-            id: $id,
45
-            namespacedAttributes: $namespacedAttributes,
40
+            base : $base,
41
+            attributes : $attributes,
42
+            anyAttribute : $anyAttribute,
43
+            annotation : $annotation,
44
+            id : $id,
45
+            namespacedAttributes : $namespacedAttributes,
46 46
         );
47 47
     }
48 48
 }
Please login to merge, or discard this patch.
src/XMLSchema/XML/AbstractElement.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function __construct(
57 57
         ?NCNameValue $name = null,
58 58
         ?QNameValue $reference = null,
59
-        protected LocalSimpleType|LocalComplexType|null $localType = null,
59
+        protected LocalSimpleType | LocalComplexType | null $localType = null,
60 60
         protected array $identityConstraint = [],
61 61
         protected ?QNameValue $type = null,
62 62
         protected ?QNameValue $substitutionGroup = null,
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
      *
118 118
      * @return \SimpleSAML\XMLSchema\XML\LocalSimpleType|\SimpleSAML\XMLSchema\XML\LocalComplexType|null
119 119
      */
120
-    public function getLocalType(): LocalSimpleType|LocalComplexType|null
120
+    public function getLocalType(): LocalSimpleType | LocalComplexType | null
121 121
     {
122 122
         return $this->localType;
123 123
     }
Please login to merge, or discard this patch.
src/XMLSchema/XML/AbstractTopLevelComplexType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         ?BooleanValue $abstract = null,
40 40
         ?DerivationSetValue $final = null,
41 41
         ?DerivationSetValue $block = null,
42
-        SimpleContent|ComplexContent|null $content = null,
42
+        SimpleContent | ComplexContent | null $content = null,
43 43
         ?TypeDefParticleInterface $particle = null,
44 44
         array $attributes = [],
45 45
         ?AnyAttribute $anyAttribute = null,
Please login to merge, or discard this patch.
src/XMLSchema/XML/Trait/ComplexTypeModelTrait.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      *
22 22
      * @var \SimpleSAML\XMLSchema\XML\SimpleContent|\SimpleSAML\XMLSchema\XML\ComplexContent|null
23 23
      */
24
-    protected SimpleContent|ComplexContent|null $content = null;
24
+    protected SimpleContent | ComplexContent | null $content = null;
25 25
 
26 26
 
27 27
     /**
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      *
30 30
      * @return \SimpleSAML\XMLSchema\XML\SimpleContent|\SimpleSAML\XMLSchema\XML\ComplexContent|null
31 31
      */
32
-    public function getContent(): SimpleContent|ComplexContent|null
32
+    public function getContent(): SimpleContent | ComplexContent | null
33 33
     {
34 34
         return $this->content;
35 35
     }
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      *
41 41
      * @param \SimpleSAML\XMLSchema\XML\SimpleContent|\SimpleSAML\XMLSchema\XML\ComplexContent|null $content
42 42
      */
43
-    protected function setContent(SimpleContent|ComplexContent|null $content = null): void
43
+    protected function setContent(SimpleContent | ComplexContent | null $content = null): void
44 44
     {
45 45
         $this->content = $content;
46 46
     }
Please login to merge, or discard this patch.
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 1 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.