class RuboCop::Cop::Layout::SpaceInsideParens
def process_with_compact_style(tokens)
def process_with_compact_style(tokens) tokens.each_cons(2) do |token1, token2| correct_extraneous_space_in_empty_parens(token1, token2) if !left_parens?(token1, token2) && !right_parens?(token1, token2) correct_missing_space(token1, token2) else correct_extraneous_space_between_consecutive_parens(token1, token2) end end end