Current code uses PHP_EOL to generate the file. So I use PHP_EOL for consistency.
And I don't think it's right to always generate unix endings.