@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $type->getPrimitiveKind()->getValue() > PrimitiveTypeKind::GeometryMultiPoint()->getValue() |
| 23 | 23 | ) |
| 24 | 24 | ) { |
| 25 | - return [InterfaceValidator::CreateInterfaceKindValueUnexpectedError($type, $type->getPrimitiveKind()->getKey(), 'PrimitiveKind') ]; |
|
| 25 | + return [InterfaceValidator::CreateInterfaceKindValueUnexpectedError($type, $type->getPrimitiveKind()->getKey(), 'PrimitiveKind')]; |
|
| 26 | 26 | } else { |
| 27 | 27 | return null; |
| 28 | 28 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | $followup[] = $type->getElementType(); |
| 19 | 19 | return null; |
| 20 | 20 | } else { |
| 21 | - return[ InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'ElementType')]; |
|
| 21 | + return[InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'ElementType')]; |
|
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $followup[] = $value->getValue(); |
| 18 | 18 | return null; |
| 19 | 19 | } else { |
| 20 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value') ]; |
|
| 20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value')]; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | |
| 27 | 27 | return null; |
| 28 | 28 | } else { |
| 29 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'Definition')]; |
|
| 29 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, 'Definition')]; |
|
| 30 | 30 | } |
| 31 | 31 | } |
| 32 | 32 | |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $references[] = $expression->getReferencedFunction(); |
| 25 | 25 | return null; |
| 26 | 26 | } else { |
| 27 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedFunction') ]; |
|
| 27 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedFunction')]; |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $references[] = $expression->getReferencedEntitySet(); |
| 18 | 18 | return null; |
| 19 | 19 | } else { |
| 20 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedEntitySet') ]; |
|
| 20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'ReferencedEntitySet')]; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $followup[] = $expression->getExpressionKind(); |
| 18 | 18 | return null; |
| 19 | 19 | } else { |
| 20 | - return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'Expression') ]; |
|
| 20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, 'Expression')]; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | $followup[] = $annotation->getValue(); |
| 18 | 18 | return null; |
| 19 | 19 | } else { |
| 20 | - return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, 'Value') ]; |
|
| 20 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, 'Value')]; |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IGuidConstantExpression::class); |
| 85 | 85 | break; |
| 86 | 86 | |
| 87 | - case ExpressionKind::Null(): |
|
| 87 | + case ExpressionKind::null(): |
|
| 88 | 88 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', INullExpression::class); |
| 89 | 89 | break; |
| 90 | 90 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IEnumMemberReferenceExpression::class); |
| 125 | 125 | break; |
| 126 | 126 | |
| 127 | - case ExpressionKind::If(): |
|
| 127 | + case ExpressionKind::if(): |
|
| 128 | 128 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IIfExpression::class); |
| 129 | 129 | break; |
| 130 | 130 | |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IEnumMemberReferenceExpression::class); |
| 125 | 125 | break; |
| 126 | 126 | |
| 127 | - case ExpressionKind::If(): |
|
| 127 | + case ExpressionKind::If (): |
|
| 128 | 128 | $expressionKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($expression, $expression->getExpressionKind(), 'ExpressionKind', IIfExpression::class); |
| 129 | 129 | break; |
| 130 | 130 | |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | } |
| 155 | 155 | } |
| 156 | 156 | |
| 157 | - return null !== $expressionKindError ? [ $expressionKindError ] : null; |
|
| 157 | + return null !== $expressionKindError ? [$expressionKindError] : null; |
|
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | public function forType(): string |