There should not be useless else
cases.
--- Original
+++ New
@@ -1,6 +1,6 @@
<?php
if ($a) {
return 1;
-} else {
+}
return 2;
-}
+
The rule is part of the following rule set:
- @PhpCsFixer
- Using the @PhpCsFixer rule set will enable the
no_useless_else
rule.