superdj / spaces-in-parentheses-php-cs-fixer
A custom PHP CS Fixer to add or remove spaces in parentheses
v1.1.0
2022-01-21 19:28 UTC
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3.0.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-04-23 23:19:04 UTC
README
Installation
Install it with the following command:
composer require --dev superdj/spaces-in-parentheses-php-cs-fixer
Usage
In .php-cs-fixer.php
add the following:
return ( new PhpCsFixer\Config ) ->registerCustomFixers( [ new \SuperDJ\SpacesInParenthesesFixer\SpacesInParenthesesFixer, ] ) ->setRules( [ 'SuperDJ/spaces_in_parentheses' => [ 'space' => 'spaces' ], ]);