paulhenri-l/php-cs-config

1.0.2 2021-10-06 14:55 UTC

This package is auto-updated.

Last update: 2024-04-06 20:30:01 UTC


README

Tests License: MIT

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);