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

Wrong parameter description: it's actually array, but not string.