This is done because of the use of in-html ```if```/```foreach``` statements, using the ```1``` syntax.
It is a lot clearer when having the opening ```if```/```foreach```and closing ```endif```/```endforeach``` statements in their own php blocks.
This also prevents weird indentation issues.