@@ -15,7 +15,7 @@ |
||
15 | 15 | assert($function instanceof IFunction); |
16 | 16 | // No need to return the return type as followup - it is handled as such in the IFunctionBase visitor. |
17 | 17 | return (null === $function->getParameters()) |
18 | - ? [ InterfaceValidator::CreatePropertyMustNotBeNullError($function, 'ReturnType') ] : null; |
|
18 | + ? [InterfaceValidator::CreatePropertyMustNotBeNullError($function, 'ReturnType')] : null; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($value instanceof IBinaryValue); |
16 | 16 | return null === $value->getValue() ? |
17 | - [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value') ] |
|
17 | + [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Value')] |
|
18 | 18 | : |
19 | 19 | null; |
20 | 20 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | { |
15 | 15 | assert($value instanceof IPropertyValue); |
16 | 16 | return null === $value->getName() ? |
17 | - [ InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Name') ] |
|
17 | + [InterfaceValidator::CreatePropertyMustNotBeNullError($value, 'Name')] |
|
18 | 18 | : |
19 | 19 | null; |
20 | 20 | } |
@@ -15,7 +15,7 @@ |
||
15 | 15 | { |
16 | 16 | assert($typeRef instanceof IRowTypeReference); |
17 | 17 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind() != TypeKind::Row() |
18 | - ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
18 | + ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | 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 IPrimitiveTypeReference); |
16 | 16 | return null !== $typeRef->getDefinition() && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() |
17 | - ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
17 | + ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function forType(): string |
@@ -47,7 +47,7 @@ |
||
47 | 47 | break; |
48 | 48 | } |
49 | 49 | |
50 | - return null !== $termKindError ? [ $termKindError ] : null; |
|
50 | + return null !== $termKindError ? [$termKindError] : null; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function forType(): string |
@@ -61,7 +61,7 @@ |
||
61 | 61 | $this->lookup[ExpressionKind::ValueTermReference()->getValue()] = IValueTermReferenceExpression::class; |
62 | 62 | $this->lookup[ExpressionKind::EntitySetReference()->getValue()] = IEntitySetReferenceExpression::class; |
63 | 63 | $this->lookup[ExpressionKind::EnumMemberReference()->getValue()] = IEnumMemberReferenceExpression::class; |
64 | - $this->lookup[ExpressionKind::If()->getValue()] = IIfExpression::class; |
|
64 | + $this->lookup[ExpressionKind::If ()->getValue()] = IIfExpression::class; |
|
65 | 65 | $this->lookup[ExpressionKind::AssertType()->getValue()] = IAssertTypeExpression::class; |
66 | 66 | $this->lookup[ExpressionKind::IsType()->getValue()] = IIsTypeExpression::class; |
67 | 67 | $this->lookup[ExpressionKind::FunctionApplication()->getValue()] = IApplyExpression::class; |
@@ -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 |