Code Duplication    Length = 3-5 lines in 2 locations

core/db_models/EEM_Base.model.php 2 locations

@@ 4397-4401 (lines=5) @@
4394
            }
4395
            return $operator;
4396
        }
4397
        if (in_array($operator, $this->valid_like_style_operators()) && ! is_array($value)) {
4398
            // if the operator is 'LIKE', we want to allow percent signs (%) and not
4399
            // remove other junk. So just treat it as a string.
4400
            return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s');
4401
        }
4402
        if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4403
            return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj);
4404
        }
@@ 4402-4404 (lines=3) @@
4399
            // remove other junk. So just treat it as a string.
4400
            return $operator . SP . $this->_wpdb_prepare_using_field($value, '%s');
4401
        }
4402
        if (! in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4403
            return $operator . SP . $this->_wpdb_prepare_using_field($value, $field_obj);
4404
        }
4405
        if (in_array($operator, $this->valid_in_style_operators()) && ! is_array($value)) {
4406
            throw new EE_Error(
4407
                sprintf(