class RuboCop::Cop::Performance::CaseWhenSplat
def reordering_correction(when_node)
def reordering_correction(when_node) new_condition = replacement(when_node.conditions) if same_line?(when_node, when_node.body) new_condition_with_then(when_node, new_condition) else new_branch_without_then(when_node, new_condition) end end