PHP Beautifier / Purifier dolphin 7.1.0

I did a lot of changes at my dolphin 7.0.9 and would like to port them to dolphin 7.1.0. My problem is that dolphin has been beautified and my source code tracking system shows a change in almost every file due to that.

To avoid looking at every file and having a lot of work to do I'd like to know which beautifier did the boonex developer use?
The next question is, which settings did they apply?

Thank you so much!

Quote · 16 Jan 2013

 RE

which beautifier did the boonex developer use

 They don't use beautifiers.... they use uglifiers

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 16 Jan 2013

Would not matter anyway.

Dolphin 7.1 is a major change from 7.0.9.

All obsolete code and a lot of other stuff was removed from code when they altered the template system.

Most every file in dolphin was edited anyway. So even if you figured out what they used it would make no difference. There are still way to many changes.



https://www.deanbassett.com
Quote · 16 Jan 2013

Better compare your 7.0.9 against unmodified 7.0.9 and get a record of all changes then go ahead and try them on 7.1 one by one.

so much to do....
Quote · 16 Jan 2013

We used PHP-CS-Fixer. I've written about it here - http://www.boonex.com/forums/topic/Dolphin-7-1-considerable-changes-which-affect-mods.htm

You can apply this fixer to your 7.0.9 code to make comparison a bit easier, however there are still many changes made manually.

The following fixers have been used: indentation,linefeed,trailing_spaces,php_closing_tag,short_tag,braces,phpdoc_params,eof_ending,extra_empty_lines

I've attached original script which was used to fix Dolphin code.

Also I've noticed that this script need to be run 2 times to get all code fixed, after 1 run - there are still some fixes left untouched (maybe it was fixed in later versions).

_clean_code.sh · 1.4K · 298 downloads
Rules → http://www.boonex.com/terms
Quote · 17 Jan 2013

Thank you very much AlexT :)

Quote · 17 Jan 2013
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.