I am currently using PHP_Beautifier for formatting code with the following command like options
-t -l "ArrayNested() IndentStyles(style=bsd) NewLines(before=T_CLASS:function:T_COMMENT,after=T_COMMENT)"
It works great except for the fact that it strips out all the blank lines. After a bit of searching, I found it posted as a bug that is open since 2007.
I tried looking into the codebase but was unable to locate the specific code that does this. I appreciate any help I can get in the right direction.
Thanks!