Update types in PHPDoc.
Update phpdoc.
Update PHPDoc.
Update PHPDoc.
Fix PHPDoc.
Revert third party modifications.
Fix coding style
Merge pull request #745 from Tithugues/phpdoc

Phpdoc update
Coding style fixes
Add some missing doc comments
Fix coding style