Closed wppunk closed 2 years ago
When writing the sniff please don't forget about the case with merging branches. I'm not 100% sure whether it'll need any special treatment but worth checking.
switch ( $args['value_compare'] ) {
case 'is':
$where['arg_value'] = "{$fields_table}.value = ''";
break;
case 'maybe':
case 'is_not':
$where['arg_value'] = "{$fields_table}.value <> ''";
break;
}
Description
Add next rules for the
switch
statement:switch
statementswitch
statement (if it no last)case
ordefault
statement (if it no first)break
statement.Tested code
Correct: