mouf / codestylefixservice
自动修复代码风格
1.0.x-dev
2016-04-21 16:44 UTC
Requires
- fabpot/php-cs-fixer: ~1.11
Requires (Dev)
- phpunit/phpunit: ~4.0 | ~5.0
This package is auto-updated.
Last update: 2024-09-15 05:34:02 UTC
README
描述
此包简化了从PHP代码中使用PhpCsFixer的过程;更多信息请参阅PHP-CS-Fixer文档
安装
添加到 ./composer.json 文件
"require": {
"mouf/codestylefixservice"
}
或者
composer install mouf/codestylefixservice
使用方法
$fixService = new FixService(); $fixService->csFix("MyPhpFile.php"); // add the path to file you want to auto-clean