Dockerfile 設定
# friendsofphp/php-cs-fixer
RUN composer global require friendsofphp/php-cs-fixer
RUN ln -s /root/.config/composer/vendor/bin/php-cs-fixer /usr/local/bin/php-cs-fixer
# squizlabs/php_codesniffer
RUN composer global require squizlabs/php_codesniffer
RUN ln -s /root/.config/composer/vendor/bin/phpcs /usr/local/bin/phpcs
RUN ln -s /root/.config/composer/vendor/bin/phpcbf /usr/local/bin/phpcbf
- File > Settings > Languages & Frameworks > php > Quality Tools
- PHP_CodeSniffer
- Configuration: ...
- PHP_CodeSniffer
* + >
-
Form Docker, Vagrant, VM, WSL, Remote >