paulhenri-l/php-cs-config

1.0.2 2021-10-06 14:55 UTC

This package is auto-updated.

Last update: 2024-11-06 21:41:21 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);