
no_useless_return
¶There should not be an empty return
statement at the end of a function.
--- Original
+++ New
<?php
function example($b) {
if ($b) {
return;
}
- return;
+
}
The rule is part of the following rule set:
Using the @PhpCsFixer rule set will enable the no_useless_return
rule.