class RuboCop::Cop::Style::BracesAroundHashParameters

def check(arg, args)

def check(arg, args)
  if style == :braces && !braces?(arg)
    add_offense(arg.parent, arg.source_range, format(MSG, 'Missing'))
  elsif style == :no_braces && braces?(arg)
    add_offense(arg.parent, arg.source_range,
                format(MSG, 'Redundant'))
  elsif style == :context_dependent
    check_context_dependent(arg, args)
  end
end