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

Code Inspection: 'switch' with single 'case'

Last modified: 16 May 2022

Reports the switch statements that only contain a single case statement. Such switch statements can be converted into if statements.