Ending parentheses or braces should be on there own line.

I recommend to read [the Symfony coding standards](http://symfony.com/doc/current/contributing/code/standards.html). And you should run the PHP CS fixer with `--level=all`, which will fix much issues.