class RuboCop::Cop::Layout::CaseIndentation

def incorrect_style(when_node, branch_type)

def incorrect_style(when_node, branch_type)
  depth = indent_one_step? ? 'one step more than' : 'as deep as'
  message = format(MSG, branch_type: branch_type, depth: depth, base: style)
  add_offense(when_node.loc.keyword, message: message) do |corrector|
    detect_incorrect_style(when_node)
    whitespace = whitespace_range(when_node)
    corrector.replace(whitespace, replacement(when_node)) if whitespace.source.strip.empty?
  end
end