PHPStorm inconsistently formats SQL as you write it, but if you copy/paste it, it formats it an entirely different way.