Fixed coding standards
Fixed the compatibility with PHP 5.3

Refs #235
Removed duplication in DI tests
Fixed coding standards and phpdoc