@@ -17,7 +17,7 @@ |
||
17 | 17 | assert($typeRef instanceof ITemporalTypeReference); |
18 | 18 | $primitive = $typeRef->getDefinition(); |
19 | 19 | assert($primitive instanceof IPrimitiveType); |
20 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedParameter") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedParameter")]; |
|
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 IEnumTypeReference); |
16 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEnum() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
16 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEnum() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
17 | 17 | |
18 | 18 | } |
19 | 19 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "Expression") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "Expression")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | break; |
29 | 29 | |
30 | 30 | case TypeKind::Entity(): |
31 | - $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind",IEntityType::class); |
|
31 | + $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind", IEntityType::class); |
|
32 | 32 | break; |
33 | 33 | |
34 | 34 | case TypeKind::Complex(): |
@@ -40,11 +40,11 @@ discard block |
||
40 | 40 | break; |
41 | 41 | |
42 | 42 | case TypeKind::Collection(): |
43 | - $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind",ICollectionType::class); |
|
43 | + $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind", ICollectionType::class); |
|
44 | 44 | break; |
45 | 45 | |
46 | 46 | case TypeKind::EntityReference(): |
47 | - $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind",IEntityReferenceType::class); |
|
47 | + $typeKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($type, $type->getTypeKind(), "TypeKind", IEntityReferenceType::class); |
|
48 | 48 | break; |
49 | 49 | |
50 | 50 | case TypeKind::Enum(): |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | break; |
60 | 60 | } |
61 | 61 | |
62 | - return $typeKindError != null ? [$typeKindError ] : null; |
|
62 | + return $typeKindError != null ? [$typeKindError] : null; |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | public function forType(): string |
@@ -126,12 +126,12 @@ discard block |
||
126 | 126 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), "ExpressionKind", IEnumMemberReferenceExpression::class); |
127 | 127 | break; |
128 | 128 | |
129 | - case ExpressionKind::If(): |
|
129 | + case ExpressionKind::If (): |
|
130 | 130 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), "ExpressionKind", IIfExpression::class); |
131 | 131 | break; |
132 | 132 | |
133 | 133 | case ExpressionKind::AssertType(): |
134 | - $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), "ExpressionKind",IAssertTypeExpression::class); |
|
134 | + $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), "ExpressionKind", IAssertTypeExpression::class); |
|
135 | 135 | break; |
136 | 136 | |
137 | 137 | case ExpressionKind::IsType(): |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | } |
157 | 157 | } |
158 | 158 | |
159 | - return $expressionKindError != null ? [ $expressionKindError ] : null; |
|
159 | + return $expressionKindError != null ? [$expressionKindError] : null; |
|
160 | 160 | } |
161 | 161 | |
162 | 162 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($typeRef instanceof IEntityTypeReference); |
16 | 16 | |
17 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEntity() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
17 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEntity() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($function instanceof IFunction); |
16 | 16 | // No need to return the return type as followup - it is handled as such in the IFunctionBase visitor. |
17 | - return ($function->getParameters() === null) ? [ InterfaceValidator::CreatePropertyMustNotBeNullError($function, "ReturnType") ] : null; |
|
17 | + return ($function->getParameters() === null) ? [InterfaceValidator::CreatePropertyMustNotBeNullError($function, "ReturnType")] : null; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | assert($typeRef instanceof ISpatialTypeReference); |
18 | 18 | $primitive = $typeRef->getDefinition(); |
19 | 19 | assert($primitive instanceof IPrimitiveType); |
20 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |