Adhere to WP coding standards

Coding standard corrections for indentation, space usage, and SQL statement formatting.