[phc-general] pretty php request

Arkadiy Kulev eth at ethaniel.com
Wed Oct 10 11:38:59 CEST 2007


Hello phc-general,

 I was pretty amazed how your program beautified my php script, it
 sent all the functions directly to the top and tabbed all the other
 data pretty nicely.

 I have 2 requests, if that is possible:
   1. Add an option to remove the leading tab (the first one at the
   beginning of the line).
   2. I have a problem with all brackets "{" and "}" starting at a new line, so

   if (true) {
   true;
   } else {
   false;
   }

   turns into
   
   if (true)
   {
      true;
   }
   else
   {
      false;
   }

   which is pretty bothering. can I ask you to add an option to change this
   functionality to

   if (true) {
      true;
   } else {
      false;
   }
   

Arkadiy Kulev                         mailto:eth at ethaniel.com
ICQ 17107076
MSN arca at mail.ru
Skype arkadiynight

+7 495 1300279
Moscow, Russia



More information about the phc-general mailing list