PHP_CodeSniffer changes, bug fixes from earlier refactoring. Standardized on parameters and database fields with camelCase format.