class RuboCop::Cop::Performance::CaseWhenSplat

def reorder_condition(corrector, when_node)

def reorder_condition(corrector, when_node)
  when_branches = when_node.parent.when_branches
  return if when_branches.one?
  corrector.remove(when_branch_range(when_node))
  corrector.insert_after(when_branches.last.source_range,
                         reordering_correction(when_node))
end