This is not a bug just that it's ugly. Smaller code is
sometimes is more readable
The generated code is a mess, full of empty lines ,
new lines where should not be, php code is segmented,
braces open at if and only 1 line of code in it.
instead of tab's only spaces are used...