eislambey/double-quote-fixer

This package is abandoned and no longer maintained. No replacement package was suggested.

Double quote fixer for PHP CS Fixer

v0.1.0 2020-09-17 07:12 UTC

This package is auto-updated.

Last update: 2024-04-18 16:07:37 UTC


README

This project is unmaintained. Use gd-75/php-cs-fixer-enforce-double-quotes instead

Double Quote Fixer

PHP CS Fixer rule for using double quotes. Code copied and edited from single_quote rule.

Installation

composer require eislambey/double-quote-fixer --dev

Usage

PhpCsFixer\Config::create()
    ->setRiskyAllowed(true)
    ->registerCustomFixers([
        new \Islambey\Fixers\DoubleQuoteFixer(),
    ])
    ->setRules([
        "Islambey/double_quote" => ["strings_containing_double_quote_chars" => true],
    ]);

License

The MIT License