Resolving code sniffer issue