Fixes various phpdoc and coding standards.