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

This package is auto-updated.

Last update: 2024-04-23 23:19:04 UTC


README

Packagist Downloads

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' ],
    ]);