Remove trailing white spaces
Make documentation comments compliant with PAER coding standards
Opening parenthesis of a multi-line function call must be the last content on the line
Rename function name according to PEAR standards
Merge pull request #292 from kasunchathuranga/CodeFormatting

Fix coding standard violations