Code Duplication    Length = 3-5 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 4279-4283 (lines=5) @@
4276
            }
4277
            return $operator;
4278
        }
4279
        if (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) {
4280
            //if the operator is 'LIKE', we want to allow percent signs (%) and not
4281
            //remove other junk. So just treat it as a string.
4282
            return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s');
4283
        }
4284
        if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4285
            return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj);
4286
        }
@@ 4284-4286 (lines=3) @@
4281
            //remove other junk. So just treat it as a string.
4282
            return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s');
4283
        }
4284
        if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4285
            return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj);
4286
        }
4287
        if (in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4288
            throw new EE_Error(
4289
                sprintf(