Revert "php formatting/beautifying"
and correct formatting + remove semicolons

This reverts commit efc871535e4767e128a42292a9c11889d818557d.