經過composer 安裝PHP_CodeSniffer :php
squizlabs/PHP_CodeSniffer gihub地址 git
composer global require "squizlabs/php_codesniffer=*"github
composer global require "squizlabs/php_codesniffer=*"
配置phpStorm 找到phpcs.bat的路徑以後valiedate 驗證一下composer
用上一個路徑能夠,下面一個會報錯:ui
inspections(檢查)spa
效果以下:3d