Use DOKU_LF instead of PHP_EOL. PHP_EOL is platform dependent, so you get in trouble while migrating between platforms. IMHO this will break on windows, because writeManagerData uses DOKU_LF.