paulhenri-l / php-cs-config
php-cs-config
1.0.2
2021-10-06 14:55 UTC
Requires
- php: ^7.3|^8.0
- friendsofphp/php-cs-fixer: ^3.1
Requires (Dev)
- phpunit/phpunit: ^9.0
- symfony/var-dumper: ^5.3
README
Installation
composer require paulhenri-l/php-cs-config --dev
Usage
Inside your .php-cs-fixer.php
config
<?php require __DIR__ . '/vendor/autoload.php'; $finder = \PhpCsFixer\Finder::create()->in([ 'src/', 'tests/' ]); return (new PaulhenriL\PhpCsConfig\Config())->setRules([ '@paulhenri-l' => true, 'array_syntax' => ['syntax' => 'short'], ])->setFinder($finder);