use SplFileObject instead of fopen, and remove 'auto_detect_line_endings'
fix CS
update travis.yml to also test for Symfony 2.4 en 2.5