PHPTidy this function.