Fix codesniffer errors— update code to match code standards.