Fixes #1277 Remove PHP closing tags.

PHP closing tags was still created in various places.