@@ -16,7 +16,7 @@ |
||
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 | /** |
@@ -16,7 +16,7 @@ |
||
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) |
@@ -12,7 +12,7 @@ |
||
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 | - |
@@ -24,7 +24,7 @@ |
||
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 | - |
@@ -100,7 +100,7 @@ discard block |
||
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 |
||
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, |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | * \SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum |
261 | 261 | * )[] |
262 | 262 | */ |
263 | - public function getAttributeNamespace(): array|NamespaceEnum |
|
263 | + public function getAttributeNamespace(): array | NamespaceEnum |
|
264 | 264 | { |
265 | 265 | Assert::true( |
266 | 266 | defined('self::XS_ANY_ATTR_NAMESPACE'), |
@@ -48,7 +48,7 @@ discard block |
||
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 |
||
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, |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | * \SimpleSAML\XMLSchema\XML\Enumeration\NamespaceEnum |
212 | 212 | * ) |
213 | 213 | */ |
214 | - public function getElementNamespace(): array|NamespaceEnum |
|
214 | + public function getElementNamespace(): array | NamespaceEnum |
|
215 | 215 | { |
216 | 216 | Assert::true( |
217 | 217 | defined('self::XS_ANY_ELT_NAMESPACE'), |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * @param array<\SimpleSAML\XML\Attribute> $namespacedAttributes |
35 | 35 | */ |
36 | 36 | public function __construct( |
37 | - protected SimpleRestriction|SimpleExtension $content, |
|
37 | + protected SimpleRestriction | SimpleExtension $content, |
|
38 | 38 | ?Annotation $annotation = null, |
39 | 39 | ?IDValue $id = null, |
40 | 40 | array $namespacedAttributes = [], |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * |
49 | 49 | * @return \SimpleSAML\XMLSchema\XML\SimpleRestriction|\SimpleSAML\XMLSchema\XML\SimpleExtension |
50 | 50 | */ |
51 | - public function getContent(): SimpleRestriction|SimpleExtension |
|
51 | + public function getContent(): SimpleRestriction | SimpleExtension |
|
52 | 52 | { |
53 | 53 | return $this->content; |
54 | 54 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function __construct( |
36 | 36 | NCNameValue $name, |
37 | - LocalSimpleType|LocalComplexType|null $localType = null, |
|
37 | + LocalSimpleType | LocalComplexType | null $localType = null, |
|
38 | 38 | array $identityConstraint = [], |
39 | 39 | ?QNameValue $type = null, |
40 | 40 | ?QNameValue $substitutionGroup = null, |
@@ -49,20 +49,20 @@ discard block |
||
49 | 49 | array $namespacedAttributes = [], |
50 | 50 | ) { |
51 | 51 | parent::__construct( |
52 | - name: $name, |
|
53 | - localType: $localType, |
|
54 | - identityConstraint: $identityConstraint, |
|
55 | - type: $type, |
|
56 | - substitutionGroup: $substitutionGroup, |
|
57 | - default: $default, |
|
58 | - fixed: $fixed, |
|
59 | - nillable: $nillable, |
|
60 | - abstract: $abstract, |
|
61 | - final: $final, |
|
62 | - block: $block, |
|
63 | - annotation: $annotation, |
|
64 | - id: $id, |
|
65 | - namespacedAttributes: $namespacedAttributes, |
|
52 | + name : $name, |
|
53 | + localType : $localType, |
|
54 | + identityConstraint : $identityConstraint, |
|
55 | + type : $type, |
|
56 | + substitutionGroup : $substitutionGroup, |
|
57 | + default : $default, |
|
58 | + fixed : $fixed, |
|
59 | + nillable : $nillable, |
|
60 | + abstract : $abstract, |
|
61 | + final : $final, |
|
62 | + block : $block, |
|
63 | + annotation : $annotation, |
|
64 | + id : $id, |
|
65 | + namespacedAttributes : $namespacedAttributes, |
|
66 | 66 | ); |
67 | 67 | } |
68 | 68 | } |
@@ -40,13 +40,13 @@ |
||
40 | 40 | array $namespacedAttributes = [], |
41 | 41 | ) { |
42 | 42 | parent::__construct( |
43 | - name: $name, |
|
44 | - attributes: $attributes, |
|
45 | - anyAttribute: $anyAttribute, |
|
46 | - reference: null, |
|
47 | - annotation: $annotation, |
|
48 | - id: $id, |
|
49 | - namespacedAttributes: $namespacedAttributes, |
|
43 | + name : $name, |
|
44 | + attributes : $attributes, |
|
45 | + anyAttribute : $anyAttribute, |
|
46 | + reference : null, |
|
47 | + annotation : $annotation, |
|
48 | + id : $id, |
|
49 | + namespacedAttributes : $namespacedAttributes, |
|
50 | 50 | ); |
51 | 51 | } |
52 | 52 | } |