@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | assert($item instanceof INamedElement); |
| 16 | 16 | return null !== $item->getName() |
| 17 | - ? null : [ InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name') ]; |
|
| 17 | + ? null : [InterfaceValidator::CreatePropertyMustNotBeNullError($item, 'Name')]; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function forType(): string |
@@ -15,7 +15,7 @@ |
||
| 15 | 15 | assert($typeRef instanceof IEntityTypeReference); |
| 16 | 16 | |
| 17 | 17 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->isEntity() |
| 18 | - ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 18 | + ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 19 | 19 | } |
| 20 | 20 | |
| 21 | 21 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | assert($typeRef instanceof IStructuredTypeReference); |
| 16 | 16 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->IsStructured() |
| 17 | - ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 17 | + ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | 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()->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 |
@@ -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() && |
@@ -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, |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | break; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - return null !== $typeKindError ? [$typeKindError ] : null; |
|
| 101 | + return null !== $typeKindError ? [$typeKindError] : null; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | public function forType(): string |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | $thisTypeKeys = array_keys($thisFunction->getParameters()); |
| 146 | 146 | $otherTypeKeys = array_keys($otherFunction->getParameters()); |
| 147 | - $keyCount = count($thisTypeKeys); |
|
| 147 | + $keyCount = count($thisTypeKeys); |
|
| 148 | 148 | for ($i = 0; $i < $keyCount; ++$i) { |
| 149 | 149 | if (!self::isEquivalentTo( |
| 150 | 150 | $thisFunction->getParameters()[$thisTypeKeys[$i]], |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | |
| 208 | 208 | $thisTypeKeys = array_keys($thisType->getDeclaredProperties()); |
| 209 | 209 | $otherTypeKeys = array_keys($otherType->getDeclaredProperties()); |
| 210 | - $keyCount = count($thisTypeKeys); |
|
| 210 | + $keyCount = count($thisTypeKeys); |
|
| 211 | 211 | for ($i = 0; $i < $keyCount; ++$i) { |
| 212 | 212 | if (!self::isEquivalentTo( |
| 213 | 213 | $thisType->getDeclaredProperties()[$thisTypeKeys[$i]], |