diff --git a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php index d3e71891..12de9d57 100644 --- a/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php +++ b/rules/Bundle210/Rector/Class_/EventSubscriberInterfaceToAttributeRector.php @@ -19,12 +19,12 @@ use PHPStan\Reflection\ReflectionProvider; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\Contract\MinPhpVersionInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/DoctrineBundle/pull/1592 diff --git a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php index 51813b36..e85b2b23 100644 --- a/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php +++ b/rules/Bundle230/Rector/Class_/AddAnnotationToRepositoryRector.php @@ -18,11 +18,11 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\MethodName; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/DoctrineBundle/commit/2f12b5302bafac39c70b024e1686119be28b79ab diff --git a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php index dff6c6b7..14912005 100644 --- a/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php +++ b/rules/CodeQuality/Rector/Class_/GetRepositoryServiceLocatorToRepositoryServiceInjectionRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as too project specific to be a generic rule. The repository class was resolved by reading the entity diff --git a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php index 7d6ffaf9..4abacbef 100644 --- a/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php +++ b/rules/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as the database level default and the PHP level default are not interchangeable. Moving the default to diff --git a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php index 873c34ef..608cb548 100644 --- a/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php +++ b/rules/CodeQuality/Rector/Class_/RemoveEmptyTableAttributeRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as the removal has no effect on the mapping, while the missing attribute makes the entity harder to diff --git a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php index 8534a186..66ed3a0d 100644 --- a/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php +++ b/rules/CodeQuality/Rector/Class_/TypeNullableEntityFromDocblockRector.php @@ -26,9 +26,9 @@ use Rector\Doctrine\NodeManipulator\ColumnPropertyTypeResolver; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @deprecated as too opinionated and narrow use-cased. Blindly forcing all entity properties to nullable native types diff --git a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php index e51cd8b3..e0e13a4c 100644 --- a/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php +++ b/rules/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector.php @@ -9,8 +9,8 @@ use Rector\Configuration\Deprecation\Contract\DeprecatedInterface; use Rector\Exception\ShouldNotHappenException; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @deprecated as incomplete and prone to create buggy code. Use custom rules tailored to your YAML mapping instead. diff --git a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php index da576205..2ba7bcdd 100644 --- a/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php +++ b/rules/CodeQuality/Rector/Property/CorrectDefaultTypesOnEntityPropertyRector.php @@ -22,8 +22,8 @@ use Rector\Exception\NotImplementedYetException; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\CorrectDefaultTypesOnEntityPropertyRector\CorrectDefaultTypesOnEntityPropertyRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php index b5e38b73..c589227c 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromColumnTypeRector.php @@ -22,12 +22,12 @@ use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\TypedPropertyFromColumnTypeRector\TypedPropertyFromColumnTypeRectorTest diff --git a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php index 19719bae..fc1a69ba 100644 --- a/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php +++ b/rules/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector.php @@ -20,13 +20,13 @@ use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; use Rector\Reflection\ReflectionResolver; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\TypeDeclaration\NodeTypeAnalyzer\PropertyTypeDecorator; use Rector\ValueObject\PhpVersion; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\CodeQuality\Rector\Property\TypedPropertyFromToOneRelationTypeRector\TypedPropertyFromToOneRelationTypeRectorTest diff --git a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php index 9191edd1..4247ce60 100644 --- a/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php +++ b/rules/Collection22/Rector/CriteriaOrderingConstantsDeprecationRector.php @@ -18,10 +18,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Collection22\Rector\CriteriaOrderingConstantsDeprecations\CriteriaOrderingConstantDeprecationRectorTest diff --git a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php index 5a69c57b..eb1f177d 100644 --- a/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php +++ b/rules/Dbal211/Rector/MethodCall/ExtractArrayArgOnQueryBuilderSelectRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @changelog https://github.com/doctrine/dbal/pull/3853 diff --git a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php index 27628536..4db0800e 100644 --- a/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php +++ b/rules/Dbal211/Rector/MethodCall/ReplaceFetchAllMethodCallRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal211\Rector\MethodCall\ReplaceFetchAllMethodCallRector\ReplaceFetchAllMethodCallRectorTest diff --git a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php index 455e32e3..5a69f76c 100644 --- a/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php +++ b/rules/Dbal31/Rector/MethodCall/QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector.php @@ -10,10 +10,10 @@ use PhpParser\Node\Identifier; use PHPStan\Type\ObjectType; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal31\Rector\MethodCall\QueryBuilderExecuteToExecuteQueryOrExecuteStatementRector\QueryBuilderExecuteToExecuteQueryOrExecuteStatementRectorTest diff --git a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php index 8021845a..c142f382 100644 --- a/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php +++ b/rules/Dbal32/Rector/Identical/PlatformGetNameToInstanceofRector.php @@ -13,10 +13,10 @@ use PhpParser\Node\Scalar\String_; use PHPStan\Type\ObjectType; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/pull/4755 diff --git a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php index cc9bcd57..0c6f3161 100644 --- a/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php +++ b/rules/Dbal36/Rector/MethodCall/MigrateQueryBuilderResetQueryPartRector.php @@ -12,10 +12,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/blob/4.2.x/UPGRADE.md#deprecated-getting-query-parts-from-querybuilder diff --git a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php index 15a09698..c57ca797 100644 --- a/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php +++ b/rules/Dbal40/Rector/MethodCall/ChangeCompositeExpressionAddMultipleWithWithRector.php @@ -10,10 +10,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-removed-compositeexpression-methods diff --git a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php index 7846f6d0..64e0edeb 100644 --- a/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php +++ b/rules/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector.php @@ -21,10 +21,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PhpParser\Enum\NodeGroup; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\Dbal40\Rector\StmtsAwareInterface\ExecuteQueryParamsToBindValueRector\ExecuteQueryParamsToBindValueRectorTest diff --git a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php index f850fe92..181fa39b 100644 --- a/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php +++ b/rules/Dbal42/Rector/New_/AddArrayResultColumnNamesRector.php @@ -15,10 +15,10 @@ use PhpParser\Node\Scalar\Int_; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/dbal/pull/6504/files diff --git a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php index 6bb7afc6..f972c2ec 100644 --- a/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php +++ b/rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php @@ -15,10 +15,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\DoctrineFixture\Rector\MethodCall\AddGetReferenceTypeRector\AddGetReferenceTypeRectorTest diff --git a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php index e23001b4..4937abdb 100644 --- a/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php +++ b/rules/Orm214/Rector/Param/ReplaceLifecycleEventArgsByDedicatedEventArgsRector.php @@ -11,10 +11,10 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\Enum\EventClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/10086 diff --git a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php index eafea2b7..5d41cfe5 100644 --- a/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php +++ b/rules/Orm28/Rector/MethodCall/IterateToToIterableRector.php @@ -15,10 +15,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @changelog https://github.com/doctrine/orm/pull/7885 diff --git a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php index 7c5a178f..d31e7b50 100644 --- a/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php +++ b/rules/Orm30/Rector/MethodCall/CastDoctrineExprToStringRector.php @@ -11,10 +11,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/commit/4d73e3ce7801d3bf3254257332e903d8ecea4096 diff --git a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php index c06aa710..1214a32e 100644 --- a/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php +++ b/rules/Orm30/Rector/MethodCall/SetParametersArrayToCollectionRector.php @@ -21,10 +21,10 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/9490 diff --git a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php index 1c7f8ad1..005a7670 100644 --- a/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php +++ b/rules/Orm37/Rector/Attribute/DoctrineOrderByAttributeSortDirectionRector.php @@ -10,10 +10,10 @@ use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/pull/12454 diff --git a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php index 49d266f4..3b162388 100644 --- a/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php +++ b/rules/Orm37/Rector/MethodCall/DoctrineQueryBuilderSortDirectionRector.php @@ -11,10 +11,10 @@ use Rector\Doctrine\NodeAnalyzer\SortDirectionAvailabilityResolver; use Rector\Doctrine\NodeAnalyzer\SortDirectionResolver; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\VersionBonding\Contract\ComposerPackageConstraintInterface; use Rector\VersionBonding\ValueObject\ComposerPackageConstraint; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see https://github.com/doctrine/orm/issues/11313 diff --git a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php index 96f8d441..990ec518 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayDimFetchAssignToAddCollectionCallRector.php @@ -12,8 +12,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayDimFetchAssignToAddCollectionCallRector\ArrayDimFetchAssignToAddCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php index c6e63d06..436e5da2 100644 --- a/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php +++ b/rules/TypedCollections/Rector/Assign/ArrayOffsetSetToSetCollectionCallRector.php @@ -12,8 +12,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Assign\ArrayOffsetSetToSetCollectionCallRector\ArrayOffsetSetToSetCollectionCallRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php index 4bdc215d..b738d8d4 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionDocblockGenericTypeRector.php @@ -18,8 +18,8 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\FreshArrayCollectionAnalyzer; use Rector\PhpParser\Node\BetterNodeFinder; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionDocblockGenericTypeRector\CollectionDocblockGenericTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php index 6af1c0ec..fc1d0566 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionGetterNativeTypeRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionGetterNativeTypeRector\CollectionGetterNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php index 3b4681f1..158391ab 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionParamTypeSetterToCollectionPropertyRector.php @@ -17,8 +17,8 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionParamTypeSetterToCollectionPropertyRector\CollectionParamTypeSetterToCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php index 0a7cfffd..548a6255 100644 --- a/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/CollectionSetterParamNativeTypeRector.php @@ -19,8 +19,8 @@ use Rector\NodeTypeResolver\Node\AttributeKey; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\CollectionSetterParamNativeTypeRector\CollectionSetterParamNativeTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php index 3e5a0d33..c84154c3 100644 --- a/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/DefaultCollectionKeyRector.php @@ -14,8 +14,8 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\TypedCollections\DocBlockAnalyzer\CollectionTagValueNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\DefaultCollectionKeyRector\DefaultCollectionKeyRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php index 209afd87..928e5c9a 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowArrayCollectionToCollectionRector.php @@ -24,8 +24,8 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowArrayCollectionToCollectionRector\NarrowArrayCollectionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php index a0d93c81..00aad969 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowParamUnionToCollectionRector.php @@ -14,8 +14,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowParamUnionToCollectionRector\NarrowParamUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php index 45c4e0c3..68fe9519 100644 --- a/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/NarrowReturnUnionToCollectionRector.php @@ -18,8 +18,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\NarrowReturnUnionToCollectionRector\NarrowReturnUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php index 423deb91..e5ab5bb8 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNewArrayCollectionOutsideConstructorRector.php @@ -13,9 +13,9 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\ValueObject\MethodName; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\RemoveNewArrayCollectionOutsideConstructorRector\RemoveNewArrayCollectionOutsideConstructorRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php index 980ffb10..825e3497 100644 --- a/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/RemoveNullFromNullableCollectionTypeRector.php @@ -20,9 +20,9 @@ use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\RemoveNullFromNullableCollectionTypeRector\RemoveNullFromNullableCollectionTypeRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php index 7dc0b67f..a066dd98 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnArrayToNewArrayCollectionRector.php @@ -14,8 +14,8 @@ use PhpParser\Node\Stmt\Return_; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnArrayToNewArrayCollectionRector\ReturnArrayToNewArrayCollectionRectorTest diff --git a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php index 2b1e306b..d0d9ea3f 100644 --- a/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php +++ b/rules/TypedCollections/Rector/ClassMethod/ReturnCollectionDocblockRector.php @@ -16,9 +16,9 @@ use Rector\Comments\NodeDocBlock\DocBlockUpdater; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\ClassMethod\ReturnCollectionDocblockRector\ReturnCollectionDocblockRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php index 3b8d8ded..a907ef05 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteParamDocblockFromSetterToCollectionRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\CodeQuality\SetterCollectionResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteParamDocblockFromSetterToCollectionRector\CompleteParamDocblockFromSetterToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php index 16b34046..d39cd007 100644 --- a/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompletePropertyDocblockFromToManyRector.php @@ -20,9 +20,9 @@ use Rector\Doctrine\TypeAnalyzer\CollectionVarTagValueNodeResolver; use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompletePropertyDocblockFromToManyRector\CompletePropertyDocblockFromToManyRectorTest diff --git a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php index 7c4edf2c..16a3d098 100644 --- a/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php +++ b/rules/TypedCollections/Rector/Class_/CompleteReturnDocblockFromToManyRector.php @@ -16,10 +16,10 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\PHPStan\ScopeFetcher; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; use Rector\VendorLocker\NodeVendorLocker\ClassMethodReturnTypeOverrideGuard; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\CompleteReturnDocblockFromToManyRector\CompleteReturnDocblockFromToManyRectorTest diff --git a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php index e3b656ad..d84e025d 100644 --- a/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php +++ b/rules/TypedCollections/Rector/Class_/InitializeCollectionInConstructorRector.php @@ -13,9 +13,9 @@ use Rector\NodeManipulator\ClassDependencyManipulator; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\TypeDeclaration\AlreadyAssignDetector\ConstructorAssignDetector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\InitializeCollectionInConstructorRector\InitializeCollectionInConstructorRectorTest diff --git a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php index 933d123f..5bf02ab0 100644 --- a/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php +++ b/rules/TypedCollections/Rector/Class_/RemoveNullFromInstantiatedArrayCollectionPropertyRector.php @@ -13,8 +13,8 @@ use Rector\Doctrine\TypedCollections\NodeAnalyzer\EntityLikeClassDetector; use Rector\Doctrine\TypedCollections\NodeAnalyzer\InitializedArrayCollectionPropertyResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Class_\RemoveNullFromInstantiatedArrayCollectionPropertyRector\RemoveNullFromInstantiatedArrayCollectionPropertyRectorTest diff --git a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php index 6ed014b7..b2c78e86 100644 --- a/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php +++ b/rules/TypedCollections/Rector/Empty_/EmptyOnCollectionToIsEmptyCallRector.php @@ -10,8 +10,8 @@ use PHPStan\Type\ObjectType; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php index 6124d0eb..03fe5169 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveAssertNotNullOnCollectionRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\Enum\PHPUnitClassName; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveAssertNotNullOnCollectionRector\RemoveAssertNotNullOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php index 98827633..94ff8fdf 100644 --- a/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php +++ b/rules/TypedCollections/Rector/Expression/RemoveCoalesceAssignOnCollectionRector.php @@ -10,8 +10,8 @@ use PhpParser\NodeVisitorAbstract; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Expression\RemoveCoalesceAssignOnCollectionRector\RemoveCoalesceAssignOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php index ae07e51a..dbc16b41 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMapOnCollectionToArrayRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMapOnCollectionToArrayRector\ArrayMapOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php index 4ed93e85..70f5fe0b 100644 --- a/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/ArrayMergeOnCollectionToArrayRector.php @@ -9,9 +9,9 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\Enum\DoctrineClass; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\ValueObject\Type\FullyQualifiedObjectType; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\ArrayMergeOnCollectionToArrayRector\ArrayMergeOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php index d869dc05..34c3f130 100644 --- a/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php +++ b/rules/TypedCollections/Rector/FuncCall/CurrentOnCollectionToArrayRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\CurrentOnCollectionToArrayRector\CurrentOnCollectionToArrayRectorTest diff --git a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php index 0ca5d85a..19d38997 100644 --- a/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php +++ b/rules/TypedCollections/Rector/FuncCall/InArrayOnCollectionToContainsCallRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\MethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\FuncCall\InArrayOnCollectionToContainsCallRector\InArrayOnCollectionToContainsCallRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php index 76f43c23..feb257d9 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfCollectionIdenticalToNullRector.php @@ -14,8 +14,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PhpParser\Node\Value\ValueResolver; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfCollectionIdenticalToNullRector\RemoveIfCollectionIdenticalToNullRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php index 1bddbda0..15178a7a 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIfInstanceofCollectionRector.php @@ -24,8 +24,8 @@ use Rector\PHPStan\ScopeFetcher; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIfInstanceofCollectionRector\RemoveIfInstanceofCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php index 578432ba..344834e7 100644 --- a/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveIsArrayOnCollectionRector.php @@ -14,8 +14,8 @@ use PhpParser\NodeVisitorAbstract; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveIsArrayOnCollectionRector\RemoveIsArrayOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php index 0ee37a6e..a51bbd94 100644 --- a/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php +++ b/rules/TypedCollections/Rector/If_/RemoveUselessIsEmptyAssignRector.php @@ -15,8 +15,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\If_\RemoveUselessIsEmptyAssignRector\RemoveUselessIsEmptyAssignRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php index fd4074b7..72b32f66 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertNullOnCollectionToAssertEmptyRector.php @@ -10,8 +10,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertNullOnCollectionToAssertEmptyRector\AssertNullOnCollectionToAssertEmptyRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php index 556cb418..3f4771f3 100644 --- a/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php +++ b/rules/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector.php @@ -12,8 +12,8 @@ use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\PHPUnit\NodeAnalyzer\TestsNodeAnalyzer; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\AssertSameCountOnCollectionToAssertCountRector\AssertSameCountOnCollectionToAssertCountRectorTest diff --git a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php index 7448d3ce..2d5af7e7 100644 --- a/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php +++ b/rules/TypedCollections/Rector/MethodCall/SetArrayToNewCollectionRector.php @@ -15,8 +15,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\NodeAnalyzer\CollectionParamCallDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\MethodCall\SetArrayToNewCollectionRector\SetArrayToNewCollectionRectorTest diff --git a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php index f73b79d3..11a0f746 100644 --- a/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php +++ b/rules/TypedCollections/Rector/New_/RemoveNewArrayCollectionWrapRector.php @@ -10,8 +10,8 @@ use Rector\Doctrine\Enum\DoctrineClass; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\New_\RemoveNewArrayCollectionWrapRector\RemoveNewArrayCollectionWrapRectorTest diff --git a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php index ac0f53db..7704bcaa 100644 --- a/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php +++ b/rules/TypedCollections/Rector/NullsafeMethodCall/RemoveNullsafeOnCollectionRector.php @@ -9,8 +9,8 @@ use PhpParser\Node\Expr\NullsafeMethodCall; use Rector\Doctrine\TypedCollections\TypeAnalyzer\CollectionTypeDetector; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\NullsafeMethodCall\RemoveNullsafeOnCollectionRector\RemoveNullsafeOnCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php index 4609241d..4da8653f 100644 --- a/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php +++ b/rules/TypedCollections/Rector/Property/NarrowPropertyUnionToCollectionRector.php @@ -19,8 +19,8 @@ use Rector\Doctrine\TypedCollections\DocBlockProcessor\UnionCollectionTagValueNodeNarrower; use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\Rector\AbstractRector; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\NarrowPropertyUnionToCollectionRector\NarrowPropertyUnionToCollectionRectorTest diff --git a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php index e6a1bce4..5d337ac9 100644 --- a/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php +++ b/rules/TypedCollections/Rector/Property/TypedPropertyFromToManyRelationTypeRector.php @@ -14,11 +14,11 @@ use Rector\Doctrine\TypedCollections\NodeModifier\PropertyDefaultNullRemover; use Rector\PHPStanStaticTypeMapper\Enum\TypeKind; use Rector\Rector\AbstractRector; +use Rector\RuleDoc\CodeSample\CodeSample; +use Rector\RuleDoc\RuleDefinition; use Rector\StaticTypeMapper\StaticTypeMapper; use Rector\ValueObject\PhpVersionFeature; use Rector\VersionBonding\Contract\MinPhpVersionInterface; -use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample; -use Symplify\RuleDocGenerator\ValueObject\RuleDefinition; /** * @see \Rector\Doctrine\Tests\TypedCollections\Rector\Property\TypedPropertyFromToManyRelationTypeRector\TypedPropertyFromToManyRelationTypeRectorTest