Fixed CS and phpdoc
Removed unused arguments and added typehints in the container building
Removed some dead arguments
Removed redundant implements clauses
Merge pull request #462 from stof/cs_fixes

CS fixes