Allow omitting the close tag of the last PHP code block.

It is common manners to omit the close tag to avoid the trailing newline problem.