Code Inspection: 'switch' with common parts
Reports the 'switch' statements with duplicated common parts.
In the following example, all branches of the
switch statement contain the common
echo $message statement. After the quick-fix is applied, this statement extracted from the
Suppress an inspection in the editor
Position the caret at the highlighted line and press Alt+Enter or click .
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.