krzysztofrewak / php-cs-double-quote-fixer
Convert single quotes to double quotes for simple strings.
Installs: 1 061
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3|^8.0
- friendsofphp/php-cs-fixer: ^2.16
This package is auto-updated.
Last update: 2024-10-29 06:12:01 UTC
README
PhpCsFixer's fixer to convert single quotes to double quotes for simple strings.
Installation
Install package:
composer require krzysztofrewak/php-cs-double-quote-fixer --dev
Add in ecs.php
configuration file:
return static function (ContainerConfigurator $containerConfigurator): void { $services = $containerConfigurator->services(); $service = $services->set(\KrzysztofRewak\PhpCsFixer\DoubleQuoteFixer\DoubleQuoteFixer::class); };
Thanks
Thanks for Marcel Pociot for his DoubleQuoteFixer: https://github.com/mpociot/PHP-CS-Fixer/blob/master/Symfony/CS/Fixer/Contrib/DoubleQuoteFixer.php