superdj / spaces-in-parentheses-php-cs-fixer
A custom PHP CS Fixer to add or remove spaces in parentheses
Installs: 157
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
pkg:composer/superdj/spaces-in-parentheses-php-cs-fixer
Requires
- php: ^8.0
- friendsofphp/php-cs-fixer: ^3.0.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-09-24 02:33:49 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' ], ]);