Reduce code duplication between DI extensions
Fix some random CS issues.
Sync `composer.json` files content
Merge pull request #436 from stloyd/bugfix/cs

[WIP] Fix some random CS issues.
Reduce code duplication in DI extensions.