@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | { |
40 | 40 | case ValueKind::Binary(): |
41 | 41 | InterfaceValidator::CollectErrors( |
42 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
42 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
43 | 43 | $value, |
44 | 44 | $value->getValueKind(), |
45 | 45 | "ValueKind", |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | case ValueKind::Boolean(): |
53 | 53 | InterfaceValidator::CollectErrors( |
54 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
54 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
55 | 55 | $value, |
56 | 56 | $value->getValueKind(), |
57 | 57 | "ValueKind", |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | case ValueKind::Collection(): |
65 | 65 | InterfaceValidator::CollectErrors( |
66 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
66 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
67 | 67 | $value, |
68 | 68 | $value->getValueKind(), |
69 | 69 | "ValueKind", |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | |
76 | 76 | case ValueKind::DateTime(): |
77 | 77 | InterfaceValidator::CollectErrors( |
78 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
78 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
79 | 79 | $value, |
80 | 80 | $value->getValueKind(), |
81 | 81 | "ValueKind", |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | case ValueKind::DateTimeOffset(): |
89 | 89 | InterfaceValidator::CollectErrors( |
90 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
90 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
91 | 91 | $value, |
92 | 92 | $value->getValueKind(), |
93 | 93 | "ValueKind", |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | |
100 | 100 | case ValueKind::Decimal(): |
101 | 101 | InterfaceValidator::CollectErrors( |
102 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
102 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
103 | 103 | $value, |
104 | 104 | $value->getValueKind(), |
105 | 105 | "ValueKind", |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | |
112 | 112 | case ValueKind::Enum(): |
113 | 113 | InterfaceValidator::CollectErrors( |
114 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
114 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
115 | 115 | $value, |
116 | 116 | $value->getValueKind(), |
117 | 117 | "ValueKind", |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | case ValueKind::Floating(): |
125 | 125 | InterfaceValidator::CollectErrors( |
126 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
126 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
127 | 127 | $value, |
128 | 128 | $value->getValueKind(), |
129 | 129 | "ValueKind", |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | |
136 | 136 | case ValueKind::Guid(): |
137 | 137 | InterfaceValidator::CollectErrors( |
138 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
138 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
139 | 139 | $value, |
140 | 140 | $value->getValueKind(), |
141 | 141 | "ValueKind", |
@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | case ValueKind::Integer(): |
149 | 149 | InterfaceValidator::CollectErrors( |
150 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
150 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
151 | 151 | $value, |
152 | 152 | $value->getValueKind(), |
153 | 153 | "ValueKind", |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | |
160 | 160 | case ValueKind::Null(): |
161 | 161 | InterfaceValidator::CollectErrors( |
162 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
162 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
163 | 163 | $value, |
164 | 164 | $value->getValueKind(), |
165 | 165 | "ValueKind", |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | |
172 | 172 | case ValueKind::String(): |
173 | 173 | InterfaceValidator::CollectErrors( |
174 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
174 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
175 | 175 | $value, |
176 | 176 | $value->getValueKind(), |
177 | 177 | "ValueKind", |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | case ValueKind::Structured(): |
185 | 185 | InterfaceValidator::CollectErrors( |
186 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
186 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
187 | 187 | $value, |
188 | 188 | $value->getValueKind(), |
189 | 189 | "ValueKind", |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | |
196 | 196 | case ValueKind::Time(): |
197 | 197 | InterfaceValidator::CollectErrors( |
198 | - InterfaceValidator::CheckForInterfaceKindValueMismatchError ( |
|
198 | + InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
|
199 | 199 | $value, |
200 | 200 | $value->getValueKind(), |
201 | 201 | "ValueKind", |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEnumMember") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEnumMember")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | assert($type instanceof IEnumType); |
16 | 16 | $errors = null; |
17 | 17 | |
18 | - InterfaceValidator::ProcessEnumerable($type, $type->getMembers(), "Members", $followup, $errors); |
|
18 | + InterfaceValidator::ProcessEnumerable($type, $type->getMembers(), "Members", $followup, $errors); |
|
19 | 19 | |
20 | 20 | if ($type->getUnderlyingType() != null) |
21 | 21 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | assert($typeRef instanceof IDecimalTypeReference); |
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
19 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function forType(): string |
@@ -12,7 +12,7 @@ |
||
12 | 12 | protected function VisitT($typeRef, array &$followup, array &$references): iterable |
13 | 13 | { |
14 | 14 | assert($typeRef instanceof IPrimitiveTypeReference); |
15 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
15 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
16 | 16 | } |
17 | 17 | |
18 | 18 | public function forType(): string |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, "EntityType") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, "EntityType")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | protected function VisitT($typeRef, array &$followup, array &$references): iterable |
14 | 14 | { |
15 | 15 | assert($typeRef instanceof IStructuredTypeReference); |
16 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
16 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function forType(): string |
@@ -23,7 +23,7 @@ |
||
23 | 23 | ) |
24 | 24 | ) |
25 | 25 | { |
26 | - return [InterfaceValidator::CreateInterfaceKindValueUnexpectedError($type, $type->getPrimitiveKind()->getKey(), "PrimitiveKind") ]; |
|
26 | + return [InterfaceValidator::CreateInterfaceKindValueUnexpectedError($type, $type->getPrimitiveKind()->getKey(), "PrimitiveKind")]; |
|
27 | 27 | } |
28 | 28 | else |
29 | 29 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($value instanceof IBinaryValue); |
16 | 16 | return $value->getValue() == null ? |
17 | - [InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value") ] |
|
17 | + [InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value")] |
|
18 | 18 | : |
19 | 19 | null; |
20 | 20 | } |