Fixed indentation issues and missing phpdoc.