@@ -17,7 +17,7 @@ |
||
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | 19 | return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->IsSpatial() |
20 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $primitive = $typeRef->getDefinition(); |
18 | 18 | assert($primitive instanceof IPrimitiveType); |
19 | 19 | return null !== $typeRef->getDefinition() && !$primitive->getPrimitiveKind()->isBinary() |
20 | - ? [ InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
20 | + ? [InterfaceValidator::createTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
17 | 17 | $references[] = $type->getEntityType(); |
18 | 18 | return null; |
19 | 19 | } else { |
20 | - return [ InterfaceValidator::createPropertyMustNotBeNullError($type, 'EntityType') ]; |
|
20 | + return [InterfaceValidator::createPropertyMustNotBeNullError($type, 'EntityType')]; |
|
21 | 21 | } |
22 | 22 | } |
23 | 23 |
@@ -43,8 +43,7 @@ |
||
43 | 43 | StringConst::EdmModel_Validator_Semantic_InvalidPropertyTypeConcurrencyMode( |
44 | 44 | ( |
45 | 45 | $propType->isCollection() ? |
46 | - EdmConstants::Type_Collection : |
|
47 | - $key |
|
46 | + EdmConstants::Type_Collection : $key |
|
48 | 47 | ) |
49 | 48 | ) |
50 | 49 | ); |
@@ -24,8 +24,7 @@ |
||
24 | 24 | assert($property instanceof IStructuralProperty); |
25 | 25 | if ($property->getDeclaringType()->getTypeKind()->isRow()) { |
26 | 26 | $validatedType = $property->getType()->isCollection() ? |
27 | - $property->getType()->asCollection()->elementType()->getDefinition() : |
|
28 | - $property->getType()->getDefinition(); |
|
27 | + $property->getType()->asCollection()->elementType()->getDefinition() : $property->getType()->getDefinition(); |
|
29 | 28 | |
30 | 29 | EdmUtil::checkArgumentNull($validatedType, 'validatedType'); |
31 | 30 | if (!$validatedType->getTypeKind()->isPrimitive() && |
@@ -24,8 +24,7 @@ |
||
24 | 24 | assert($functionImport instanceof IFunctionImport); |
25 | 25 | if (null !== $functionImport->getReturnType()) { |
26 | 26 | $elementType = $functionImport->getReturnType()->isCollection() ? |
27 | - $functionImport->getReturnType()->asCollection()->elementType() : |
|
28 | - $functionImport->getReturnType(); |
|
27 | + $functionImport->getReturnType()->asCollection()->elementType() : $functionImport->getReturnType(); |
|
29 | 28 | if (!$elementType->isPrimitive() && |
30 | 29 | !$elementType->isEntity() && |
31 | 30 | !$elementType->isComplex() && |
@@ -32,8 +32,7 @@ |
||
32 | 32 | if (null !== $functionImport->getEntitySet() && null !== $returnType) { |
33 | 33 | /** @var ITypeReference $elementType */ |
34 | 34 | $elementType = $returnType->isCollection() ? |
35 | - $returnType->asCollection()->elementType() : |
|
36 | - $returnType; |
|
35 | + $returnType->asCollection()->elementType() : $returnType; |
|
37 | 36 | EdmUtil::checkArgumentNull($elementType->getDefinition(), 'elementType->getDefinition'); |
38 | 37 | if ($elementType->isEntity()) { |
39 | 38 | $returnedEntityType = $elementType->asEntity()->entityDefinition(); |
@@ -36,8 +36,7 @@ |
||
36 | 36 | ) ?? false |
37 | 37 | )) { |
38 | 38 | $error = null; |
39 | - if (! |
|
40 | - ValidationHelper::validateValueCanBeWrittenAsXmlElementAnnotation( |
|
39 | + if (!ValidationHelper::validateValueCanBeWrittenAsXmlElementAnnotation( |
|
41 | 40 | $stringValue, |
42 | 41 | $annotation->getNamespaceUri(), |
43 | 42 | $annotation->getName(), |
@@ -36,7 +36,7 @@ |
||
36 | 36 | // Note: this check can be done without the try/catch block, but we need XmlConvert.IsStartNCNameChar and |
37 | 37 | // XmlConvert.IsNCNameChar, which are not available in 3.5. |
38 | 38 | if (!XmlConvert::verifyNCName($annotation->getName())) { |
39 | - $value = $annotation->getValue() ; |
|
39 | + $value = $annotation->getValue(); |
|
40 | 40 | $errorLocation = ($value === null || !($value instanceof IValue)) ? null : $value->location(); |
41 | 41 | $error = new EdmError( |
42 | 42 | $errorLocation, |