replies inline... On Wed, Feb 2, 2011 at 3:23 PM, Hansen, Mike <Mike.Hansen@xxxxxxxxx> wrote: > > > > -----Original Message----- > > From: ken.guest@xxxxxxxxx [mailto:ken.guest@xxxxxxxxx] On > > Behalf Of Ken Guest > > Sent: Monday, January 31, 2011 3:26 PM > > To: Hansen, Mike > > Cc: php-general@xxxxxxxxxxxxx > > Subject: Re: Code formatter > > > > > > > > On Mon, Jan 31, 2011 at 8:27 PM, Hansen, Mike > > <Mike.Hansen@xxxxxxxxx> wrote: > > > > > > I've got an application that I'm fixing up and I'd like > > to run it through a code formatter. Is there something like > > Perl Tidy for PHP? If so, what are you experiences with it. > > No prob running it on the command line. It'd be great if it > > followed the PEAR coding standards. > > > > > > > > > > Have you found http://pear.php.net/package/PHP_Beautifier > > yet? ;) <http://www.php.net/unsub.php> > > > > > > Ken > > > > It mostly works ok. Unfortunately, there's a bug in it that removes blank > lines. > > I found this one that seems to work: http://beta.phpformatter.com/ > > I'd rather have one I can run on the command line, but this will have to > do. > Just spotted that bug is reported at http://pear.php.net/package/PHP_Beautifier/bugs - it's a shame it's been logged since 2007 or so with no sign of it getting fixed. :( -- http://blogs.linux.ie/kenguest/