Fixed code sniffer errors