2024-12-16 17:28:13 +03:00

18 lines
386 B
PHP

<?php declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->files()
->in(['src', 'tests']);
$config = new PhpCsFixer\Config();
return $config
->setRules([
'@PSR12' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'no_unused_imports' => true,
])
->setRiskyAllowed(true)
->setFinder($finder);