AlternativeIfToBracketRector

Change alternative if/elseif/else/endif syntax to bracket syntax

-if ($value) :
+if ($value) {
     $result = 1;
-else :
+} else {
     $result = 2;
-endif;
+}

Configure your rector.php:

<?php

use Rector\CodingStyle\Rector\If_\AlternativeIfToBracketRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        AlternativeIfToBracketRector::class,
    ]);
SETS:  Code Quality