whip into shape

From Wiktionary, the free dictionary