PhpStorm 2019.2 Help

Code Inspection: Redundant 'if' statement

Reports if statements whichcan be simplified to single assignment or return statements. For example:

if (foo()) { return true; } else { return false; }
can be simplified to
return foo();

Last modified: 23 August 2019