From d60a39e4dee8cffa88a37499865c1fdfdc0d6b7b Mon Sep 17 00:00:00 2001 From: Denny Septian Panggabean <97607754+ddevsr@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:24:58 +0700 Subject: [PATCH] feat: [Rector] added rules CompleteMissingIfElseBracketRector Signed-off-by: Denny Septian Panggabean <97607754+ddevsr@users.noreply.github.com> --- rector.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rector.php b/rector.php index 556f684..55f3b9b 100644 --- a/rector.php +++ b/rector.php @@ -28,6 +28,7 @@ use Rector\CodeQuality\Rector\FuncCall\SimplifyStrposLowerRector; use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector; use Rector\CodeQuality\Rector\If_\CombineIfRector; +use Rector\CodeQuality\Rector\If_\CompleteMissingIfElseBracketRector; use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector; use Rector\CodeQuality\Rector\If_\ShortenElseIfRector; use Rector\CodeQuality\Rector\If_\SimplifyIfElseToTernaryRector; @@ -159,6 +160,7 @@ $rectorConfig->rule(SimplifyRegexPatternRector::class); $rectorConfig->rule(SimplifyStrposLowerRector::class); $rectorConfig->rule(CombineIfRector::class); + $rectorConfig->rule(CompleteMissingIfElseBracketRector::class); $rectorConfig->rule(ShortenElseIfRector::class); $rectorConfig->rule(SimplifyIfElseToTernaryRector::class); $rectorConfig->rule(SimplifyIfReturnBoolRector::class);