The inspection requires PHP_CodeSniffer to be properly installed and set up in the IDE under Settings | PHP | Quality Tools | PHP_CodeSniffer.
To learn more about installing PHP_CodeSniffer, see PHP_CodeSniffer installation (GitHub).