@@ -75,7 +75,7 @@ |
||
75 | 75 | } |
76 | 76 | else |
77 | 77 | { |
78 | - $duplicate = ValidationHelper::ItemExistsInReferencedModel($model,$fullName, true); |
|
78 | + $duplicate = ValidationHelper::ItemExistsInReferencedModel($model, $fullName, true); |
|
79 | 79 | } |
80 | 80 | } |
81 | 81 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | if ($functionImport->getEntitySet() != null && $functionImport->getReturnType() != null) |
28 | 28 | { |
29 | 29 | $elementType = $functionImport->getReturnType()->IsCollection() ? |
30 | - $functionImport->getReturnType()->AsCollection()->ElementType() : |
|
31 | - $functionImport->getReturnType(); |
|
30 | + $functionImport->getReturnType()->AsCollection()->ElementType() : $functionImport->getReturnType(); |
|
32 | 31 | if ($elementType->IsEntity()) |
33 | 32 | { |
34 | 33 | $returnedEntityType = $elementType->AsEntity()->EntityDefinition(); |
@@ -24,8 +24,7 @@ |
||
24 | 24 | if ($functionImport->getReturnType() != null) |
25 | 25 | { |
26 | 26 | $elementType = $functionImport->getReturnType()->IsCollection() ? |
27 | - $functionImport->getReturnType()->AsCollection()->ElementType() : |
|
28 | - $functionImport->getReturnType(); |
|
27 | + $functionImport->getReturnType()->AsCollection()->ElementType() : $functionImport->getReturnType(); |
|
29 | 28 | if ( |
30 | 29 | !$elementType->IsPrimitive() && |
31 | 30 | !$elementType->IsEntity() && |
@@ -32,8 +32,7 @@ |
||
32 | 32 | StringConst::EdmModel_Validator_Semantic_InvalidPropertyTypeConcurrencyMode( |
33 | 33 | ( |
34 | 34 | $property->getType()->IsCollection() ? |
35 | - EdmConstants::Type_Collection : |
|
36 | - $property->getType()->TypeKind()->getKey() |
|
35 | + EdmConstants::Type_Collection : $property->getType()->TypeKind()->getKey() |
|
37 | 36 | ) |
38 | 37 | ) |
39 | 38 | ); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, "Value") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($annotation, "Value")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | protected function VisitT($item, array &$followup, array &$references): iterable |
14 | 14 | { |
15 | 15 | assert($item instanceof INamedElement); |
16 | - return $item->getName() != null ? null : [ InterfaceValidator::CreatePropertyMustNotBeNullError($item, "Name") ]; |
|
16 | + return $item->getName() != null ? null : [InterfaceValidator::CreatePropertyMustNotBeNullError($item, "Name")]; |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | public function forType(): string |
@@ -16,7 +16,7 @@ |
||
16 | 16 | assert($typeRef instanceof IBinaryTypeReference); |
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isBinary() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
19 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isBinary() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | assert($typeRef instanceof IStringTypeReference); |
18 | 18 | $primitive = $typeRef->getDefinition(); |
19 | 19 | assert($primitive instanceof IPrimitiveType); |
20 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isString() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isString() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -13,7 +13,7 @@ |
||
13 | 13 | protected function VisitT($typeRef, array &$followup, array &$references): iterable |
14 | 14 | { |
15 | 15 | assert($typeRef instanceof IComplexTypeReference); |
16 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isComplex() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
16 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isComplex() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
17 | 17 | |
18 | 18 | } |
19 | 19 |