Replaces superfluous elseif
with if
.
--- Original
+++ New
<?php
if ($a) {
return 1;
-} elseif ($b) {
+}
+if ($b) {
return 2;
}
The rule is part of the following rule set:
- @PhpCsFixer
- Using the @PhpCsFixer rule set will enable the
no_superfluous_elseif
rule.