gd-75/php-cs-fixer-enforce-double-quotes 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

gd-75/php-cs-fixer-enforce-double-quotes

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

GitHub 信息

  • Stars: 6
  • Watchers: 0
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-08-19