37 lines
708 B
PHP
37 lines
708 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use PhpCsFixer\Fixer\Import\NoUnusedImportsFixer;
|
|
use Symplify\EasyCodingStandard\Config\ECSConfig;
|
|
|
|
return ECSConfig::configure()
|
|
->withPaths([
|
|
__DIR__ . '/public',
|
|
__DIR__ . '/src',
|
|
__DIR__ . '/config',
|
|
__DIR__ . '/tests',
|
|
__DIR__ . '/bin',
|
|
])
|
|
|
|
->withRootFiles()
|
|
|
|
// add a single rule
|
|
->withRules([
|
|
NoUnusedImportsFixer::class,
|
|
])
|
|
|
|
|
|
|
|
->withPhpCsFixerSets(
|
|
per: true,
|
|
php84Migration: true,
|
|
)
|
|
|
|
|
|
// add sets - group of rules, from easiest to more complex ones
|
|
// uncomment one, apply one, commit, PR, merge and repeat
|
|
->withPreparedSets(
|
|
strict: true,
|
|
)
|
|
;
|