The story:
- Magnus Rosenbaum wrote the original phptidy script.
- Eoin Gallagher modified it so that it conforms to the WordPress Coding Standards.
- I put Eoin's version on github, for convenience.
$ wp-phptidy.php replace some-file.php
Complete documentation can be found on the phptidy home page: http://phptidy.berlios.de/