gd-75/php-cs-fixer-enforce-double-quotes
最新稳定版本:1.1.0
Composer 安装命令:
composer require gd-75/php-cs-fixer-enforce-double-quotes
包简介
A rule for PHP CS Fixer to enforce double quotes.
README 文档
README
php-cs-fixer-enforce-double-quotes
A rule for PHP CS Fixer to enforce double quotes.
Installation and usage
composer require --dev gd-75/php-cs-fixer-enforce-double-quotes
In your PHP CS Fixer configuration, add:
use GD75\DoubleQuoteFixer\DoubleQuoteFixer; use PhpCsFixer\Config; $config = new Config(); $config ->registerCustomFixers( [ new DoubleQuoteFixer() ] ) ->setRules( [ "GD75/double_quote_fixer" => true, ] );
Warning
Before auto-fixing quotes on your project, please run a dry-run with diffs to make sure the fixer works correctly.
Contributors
I'd like to thank the people who spend time to improve the project !
- Androl Genhald (tests & improvements on supported strings)
TO-DO
- Create a configuration for the allowance of single quoted strings when it contains a double quote
统计信息
- 总下载量: 29.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 1
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-08-19