Heredoc syntax causes issues on Mac OSX switch back to implode PHP_EOL method