improve code quality as suggested by sl insight

Note: I've removed the ScriptHandler, so this travis build will fail
because the doctrine:migrations:migrate command is not run.
Merge branch 'master' of https://github.com/FaceManga/animevideo