PHP requires HEREDOCs to have a newline after them.

See:
http://www.php.net/manual/en/language.types.string.php#language.types.st
ring.syntax.heredoc

> The closing delimiter must also be followed by a newline.