https://github.com/superdj/spaces-in-parentheses-php-cs-fixer
A custom PHP CS Fixer to add or remove spaces in parenthesis
https://github.com/superdj/spaces-in-parentheses-php-cs-fixer
code-style fixer php
Last synced: 3 months ago
JSON representation
A custom PHP CS Fixer to add or remove spaces in parenthesis
- Host: GitHub
- URL: https://github.com/superdj/spaces-in-parentheses-php-cs-fixer
- Owner: SuperDJ
- License: mit
- Created: 2022-01-15T15:49:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T20:04:58.000Z (almost 3 years ago)
- Last Synced: 2024-12-17T12:12:32.113Z (6 months ago)
- Topics: code-style, fixer, php
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP CS Fixer: Spaces in parentheses fixer
[](https://packagist.org/packages/superdj/spaces-in-parentheses-php-cs-fixer)
## Installation
Install it with the following command:
```php
composer require --dev superdj/spaces-in-parentheses-php-cs-fixer
```## Usage
In `.php-cs-fixer.php` add the following:
```php
return ( new PhpCsFixer\Config )
->registerCustomFixers( [
new \SuperDJ\SpacesInParenthesesFixer\SpacesInParenthesesFixer,
] )
->setRules( [
'SuperDJ/spaces_in_parentheses' => [ 'space' => 'spaces' ],
]);
```