@@ -17,7 +17,6 @@ |
||
17 | 17 | * @method bool isStructural() |
18 | 18 | * @method static Navigation(): self Represents a property implementing @see IEdmNavigationProperty |
19 | 19 | * @method bool isNavigation() |
20 | - |
|
21 | 20 | */ |
22 | 21 | class PropertyKind extends Enum |
23 | 22 | { |
@@ -334,7 +334,7 @@ |
||
334 | 334 | $str1 = mb_substr($ranges,$p,1,'UTF-8'); |
335 | 335 | $str2 = mb_substr($ranges,$p+1,1,'UTF-8'); |
336 | 336 | for ($i = mb_ord($str1), |
337 | - $last = mb_ord($str2); $i <= $last; $i++) |
|
337 | + $last = mb_ord($str2); $i <= $last; $i++) |
|
338 | 338 | { |
339 | 339 | if(!isset(self::$s_CharProperties[$i])){ |
340 | 340 | self::$s_CharProperties[$i] = $value; |
@@ -11,6 +11,6 @@ |
||
11 | 11 | { |
12 | 12 | public function getValidatedType(): string |
13 | 13 | { |
14 | - return ITypeReference::class; |
|
14 | + return ITypeReference::class; |
|
15 | 15 | } |
16 | 16 | } |
17 | 17 | \ No newline at end of file |
@@ -24,15 +24,15 @@ |
||
24 | 24 | { |
25 | 25 | assert($enumMember instanceof IEnumMember); |
26 | 26 | $discoveredErrors = []; |
27 | - if ( |
|
28 | - !$context->checkIsBad($enumMember->getDeclaringType()) && |
|
27 | + if ( |
|
28 | + !$context->checkIsBad($enumMember->getDeclaringType()) && |
|
29 | 29 | !$context->checkIsBad($enumMember->getDeclaringType()->getUnderlyingType()) && |
30 | 30 | !ExpressionTypeChecker::TryAssertPrimitiveAsType($enumMember->getValue(), |
31 | - EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false), $discoveredErrors)) |
|
32 | - { |
|
33 | - $context->AddError( |
|
34 | - $enumMember->Location(), |
|
35 | - EdmErrorCode::EnumMemberTypeMustMatchEnumUnderlyingType(), |
|
36 | - StringConst::EdmModel_Validator_Semantic_EnumMemberTypeMustMatchEnumUnderlyingType($enumMember->getName())); |
|
37 | - } } |
|
31 | + EdmTypeSemantics::GetPrimitiveTypeReference($enumMember->getDeclaringType()->getUnderlyingType(), false), $discoveredErrors)) |
|
32 | + { |
|
33 | + $context->AddError( |
|
34 | + $enumMember->Location(), |
|
35 | + EdmErrorCode::EnumMemberTypeMustMatchEnumUnderlyingType(), |
|
36 | + StringConst::EdmModel_Validator_Semantic_EnumMemberTypeMustMatchEnumUnderlyingType($enumMember->getName())); |
|
37 | + } } |
|
38 | 38 | } |
39 | 39 | \ No newline at end of file |
@@ -1293,7 +1293,7 @@ discard block |
||
1293 | 1293 | |
1294 | 1294 | // Association Set |
1295 | 1295 | if (!($this->model->GetAssociationSetName($thisEntitySet, $thisNavprop) == |
1296 | - $this->model->GetAssociationSetName($thatEntitySet, $thatNavprop) && |
|
1296 | + $this->model->GetAssociationSetName($thatEntitySet, $thatNavprop) && |
|
1297 | 1297 | $this->model->GetAssociationFullName($thisNavprop) == $this->model->GetAssociationFullName($thatNavprop))) { |
1298 | 1298 | return false; |
1299 | 1299 | } |
@@ -1318,7 +1318,7 @@ discard block |
||
1318 | 1318 | } |
1319 | 1319 | |
1320 | 1320 | if (!($this->model->GetAssociationEndName($thisNavprop->getPartner()) == |
1321 | - $this->model->GetAssociationEndName($thatNavprop->getPartner()) && |
|
1321 | + $this->model->GetAssociationEndName($thatNavprop->getPartner()) && |
|
1322 | 1322 | $thisOtherEntitySet->getName() == $thatOtherEntitySet->getName())) { |
1323 | 1323 | return false; |
1324 | 1324 | } |