The inspection requires PHP_CodeSniffer to be properly installed and set up in the IDE under Settings/Preferences | Languages & Frameworks | PHP | Quality Tools | PHP_CodeSniffer.
It is recommended to install PHP_CodeSniffer either as a Composer dependency or globally.
See PHP_CodeSniffer installation (GitHub) for details.