@@ -28,10 +28,10 @@ |
||
28 | 28 | if (!$context->checkIsBad($enumMember->getDeclaringType()) && |
29 | 29 | !$context->checkIsBad($enumMember->getDeclaringType()->getUnderlyingType()) && |
30 | 30 | !ExpressionTypeChecker::TryAssertPrimitiveAsType( |
31 | - $enumMember->getValue(), |
|
32 | - EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false), |
|
33 | - $discoveredErrors |
|
34 | - )) { |
|
31 | + $enumMember->getValue(), |
|
32 | + EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false), |
|
33 | + $discoveredErrors |
|
34 | + )) { |
|
35 | 35 | EdmUtil::checkArgumentNull($enumMember->Location(), 'enumMember->Location'); |
36 | 36 | $context->AddError( |
37 | 37 | $enumMember->Location(), |
@@ -41,8 +41,7 @@ |
||
41 | 41 | EdmErrorCode $errorCode, |
42 | 42 | string $errorString, |
43 | 43 | bool $suppressError |
44 | - ) |
|
45 | - { |
|
44 | + ) { |
|
46 | 45 | $name = $item instanceof ISchemaElement ? $item->FullName() : $item->getName(); |
47 | 46 | if ($memberNameList->add($name)) { |
48 | 47 | if (!$suppressError) { |
@@ -21,7 +21,7 @@ |
||
21 | 21 | */ |
22 | 22 | $annotation = $this; |
23 | 23 | return $annotation->GetSerializationLocation($model) == |
24 | - EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null; |
|
24 | + EdmVocabularyAnnotationSerializationLocation::Inline || $annotation->TargetString() == null; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function TargetString(): string |