Fix phpcs error reporting and fix all sniffer's bugs.