simplified_if_return
Simplify if control structures that return the boolean result of their condition.
if
--- Original +++ New <?php -if ($foo) { return true; } return false; +return (bool) ($foo) ;
PhpCsFixer\Fixer\ControlStructure\SimplifiedIfReturnFixer