PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Code Inspection: 'if' can be merged with subsequent condition

Last modified: 16 May 2022

Reports the if statements that are followed by elseif or other if statements having the same bodies. Such statements can be merged together.