diff --git a/src/Config/Level/CodeQualityLevel.php b/src/Config/Level/CodeQualityLevel.php index 6c4bee0d7f6..16a1ec5b92d 100644 --- a/src/Config/Level/CodeQualityLevel.php +++ b/src/Config/Level/CodeQualityLevel.php @@ -45,11 +45,9 @@ use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; use Rector\CodeQuality\Rector\FuncCall\SingleInArrayToCompareRector; use Rector\CodeQuality\Rector\FuncCall\SortCallLikeNamedArgsRector; -use Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector; use Rector\CodeQuality\Rector\Identical\BooleanNotIdenticalToNotIdenticalRector; use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector; use Rector\CodeQuality\Rector\Identical\SimplifyArraySearchRector; -use Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector; use Rector\CodeQuality\Rector\Identical\SimplifyConditionsRector; use Rector\CodeQuality\Rector\Identical\StrlenZeroToIdenticalEmptyStringRector; use Rector\CodeQuality\Rector\If_\ConsecutiveNullCompareReturnsToNullCoalesceQueueRector; @@ -130,7 +128,6 @@ final class CodeQualityLevel TernaryImplodeToImplodeRector::class, ConsecutiveNullCompareReturnsToNullCoalesceQueueRector::class, UseIdenticalOverEqualWithSameTypeRector::class, - SimplifyBoolIdenticalTrueRector::class, BooleanNotIdenticalToNotIdenticalRector::class, AndAssignsToSeparateLinesRector::class, CompactToVariablesRector::class, @@ -152,7 +149,6 @@ final class CodeQualityLevel VarToPublicPropertyRector::class, IssetOnPropertyObjectToPropertyExistsRector::class, NewStaticToNewSelfRector::class, - UnwrapSprintfOneArgumentRector::class, VariableConstFetchToClassConstFetchRector::class, SingularSwitchToIfRector::class, SwitchTrueToMatchRector::class, diff --git a/src/Config/Level/DeadCodeLevel.php b/src/Config/Level/DeadCodeLevel.php index 278df6aa55c..0e19d559546 100644 --- a/src/Config/Level/DeadCodeLevel.php +++ b/src/Config/Level/DeadCodeLevel.php @@ -4,7 +4,9 @@ namespace Rector\Config\Level; +use Rector\CodeQuality\Rector\FuncCall\UnwrapSprintfOneArgumentRector; use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector; +use Rector\CodeQuality\Rector\Identical\SimplifyBoolIdenticalTrueRector; use Rector\CodingStyle\Rector\ClassConst\RemoveFinalFromConstRector; use Rector\Contract\Rector\RectorInterface; use Rector\DeadCode\Rector\Array_\RemoveDuplicatedArrayKeyRector; @@ -110,6 +112,8 @@ final class DeadCodeLevel ReplaceBlockToItsStmtsRector::class, RemoveFilterVarOnExactTypeRector::class, RemoveFinalFromConstRector::class, + UnwrapSprintfOneArgumentRector::class, + SimplifyBoolIdenticalTrueRector::class, RemoveTypedPropertyDeadInstanceOfRector::class, RemoveDeadInstanceOfAssertRector::class,