@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | protected function VisitT($item, array &$followup, array &$references): iterable |
19 | 19 | { |
20 | 20 | assert($item instanceof ISchemaElement); |
21 | - $errors =[]; |
|
21 | + $errors = []; |
|
22 | 22 | |
23 | 23 | switch ($item->getSchemaElementKind()) |
24 | 24 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | ); |
35 | 35 | break; |
36 | 36 | |
37 | - case SchemaElementKind::Function(): |
|
37 | + case SchemaElementKind::Function (): |
|
38 | 38 | InterfaceValidator::CollectErrors( |
39 | 39 | InterfaceValidator::CheckForInterfaceKindValueMismatchError( |
40 | 40 | $item, |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($value, "Value")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | } |
33 | 33 | else |
34 | 34 | { |
35 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($type, "Definition")]; |
|
35 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($type, "Definition")]; |
|
36 | 36 | } |
37 | 37 | } |
38 | 38 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | assert($typeRef instanceof ICollectionTypeReference); |
16 | 16 | return $typeRef->getDefinition() != null && |
17 | 17 | !$typeRef->getDefinition()->getTypeKind()->IsCollection() ? |
18 | - [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)]: null; |
|
18 | + [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
19 | 19 | |
20 | 20 | } |
21 | 21 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | break; |
25 | 25 | |
26 | 26 | case ContainerElementKind::FunctionImport(): |
27 | - $termKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($item, $item->getContainerElementKind(),"ContainerElementKind", IFunctionImport::class); |
|
27 | + $termKindError = InterfaceValidator::CheckForInterfaceKindValueMismatchError($item, $item->getContainerElementKind(), "ContainerElementKind", IFunctionImport::class); |
|
28 | 28 | break; |
29 | 29 | |
30 | 30 | case ContainerElementKind::None(): |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | break; |
35 | 35 | } |
36 | 36 | |
37 | - return $termKindError != null ? [ $termKindError ] : null; |
|
37 | + return $termKindError != null ? [$termKindError] : null; |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | public function forType(): string |
@@ -20,7 +20,7 @@ |
||
20 | 20 | } |
21 | 21 | else |
22 | 22 | { |
23 | - return [ InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEntitySet") ]; |
|
23 | + return [InterfaceValidator::CreatePropertyMustNotBeNullError($expression, "ReferencedEntitySet")]; |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | } |
29 | 29 | else |
30 | 30 | { |
31 | - $references[] =$property->getPartner(); |
|
31 | + $references[] = $property->getPartner(); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if ($property->getPartner()->getPartner() !== $property || $property->getPartner() === $property) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @var IStructuredType|null $currentBaseType |
29 | 29 | */ |
30 | - for ( $currentBaseType = $type->getBaseType(); $currentBaseType != null; $currentBaseType = $currentBaseType->getBaseType()) |
|
30 | + for ($currentBaseType = $type->getBaseType(); $currentBaseType != null; $currentBaseType = $currentBaseType->getBaseType()) |
|
31 | 31 | { |
32 | 32 | if (in_array($currentBaseType, $visitedTypes)) |
33 | 33 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | protected function VisitT($typeRef, array &$followup, array &$references): iterable |
15 | 15 | { |
16 | 16 | assert($typeRef instanceof IRowTypeReference); |
17 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind() != TypeKind::Row() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
17 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind() != TypeKind::Row() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function forType(): string |