changing manual newline ("\n") to the more compliant (PHP_EOL)