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

Use field_get_items() here.