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

Same as above.