@@ -17,7 +17,7 @@ |
||
| 17 | 17 | assert($typeRef instanceof ITemporalTypeReference); |
| 18 | 18 | $primitive = $typeRef->getDefinition(); |
| 19 | 19 | assert($primitive instanceof IPrimitiveType); |
| 20 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 20 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsTemporal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function forType(): string |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | assert($typeRef instanceof IEntityTypeReference); |
| 16 | 16 | |
| 17 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEntity() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 17 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isEntity() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function forType(): string |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | assert($typeRef instanceof ISpatialTypeReference); |
| 18 | 18 | $primitive = $typeRef->getDefinition(); |
| 19 | 19 | assert($primitive instanceof IPrimitiveType); |
| 20 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 20 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->IsSpatial() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | public function forType(): string |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | assert($typeRef instanceof IDecimalTypeReference); |
| 17 | 17 | $primitive = $typeRef->getDefinition(); |
| 18 | 18 | assert($primitive instanceof IPrimitiveType); |
| 19 | - return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 19 | + return $typeRef->getDefinition() != null && !$primitive->getPrimitiveKind()->isDecimal() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | public function forType(): string |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | protected function VisitT($typeRef, array &$followup, array &$references): iterable |
| 13 | 13 | { |
| 14 | 14 | assert($typeRef instanceof IPrimitiveTypeReference); |
| 15 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 15 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->isPrimitive() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | 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 IStructuredTypeReference); |
| 16 | - return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [ InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef) ] : null; |
|
| 16 | + return $typeRef->getDefinition() != null && !$typeRef->getDefinition()->getTypeKind()->IsStructured() ? [InterfaceValidator::CreateTypeRefInterfaceTypeKindValueMismatchError($typeRef)] : null; |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | public function forType(): string |
@@ -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 |
@@ -96,7 +96,7 @@ |
||
| 96 | 96 | if (count($set1) != count($set2)) { |
| 97 | 97 | return false; |
| 98 | 98 | } |
| 99 | - for ($i = count($set1) -1; $i > -1; --$i) { |
|
| 99 | + for ($i = count($set1) - 1; $i > -1; --$i) { |
|
| 100 | 100 | if ($set1[$i] !== $set2[$i]) { |
| 101 | 101 | return false; |
| 102 | 102 | } |
@@ -20,11 +20,11 @@ |
||
| 20 | 20 | } |
| 21 | 21 | public static function getCycleSentinel(): ?stdClass |
| 22 | 22 | { |
| 23 | - return (object)[]; |
|
| 23 | + return (object) []; |
|
| 24 | 24 | } |
| 25 | 25 | public static function getSecondPassCycleSentinel(): ?stdClass |
| 26 | 26 | { |
| 27 | - return (object)[]; |
|
| 27 | + return (object) []; |
|
| 28 | 28 | } |
| 29 | 29 | public static function GetBoxed(bool $value) |
| 30 | 30 | { |