Posted by Colin McKinnon on 04/25/07 22:06
xio wrote:
>
> I have a bunch of files with PHP code. These files were written by
> multiple developers with different coding styles and is just so
> painful to read them.
>
> Could you recommend any tool I could use to clean up PHP code -
> something like "HTML Tidy for PHP"
>
vim does a pretty good job of sorting out whitespace layout but can't help
with deprecated syntax, bad naming, comment density etc.
There is a PHP style checker (apart from PHPlint which is all about
enforcing strict typing) in the PEAR repository called php_codesniffer.
HTH
C.
[Back to original message]
|