remove closing PHP tags

Remove closing PHP tags which are not needed or recommended in order to avoid unintended whitespace issues.