Fixed code style

I changed the following things:

- doblocks comments to be compatible with Symfony standards
- docblocks types changed (see https://github.com/symfony/symfony/pull/10701)
- some other small things