18 lines
544 B
PHP
18 lines
544 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
$finder = (new PhpCsFixer\Finder())
|
||
|
|
->in([__DIR__ . '/src', __DIR__ . '/tests']);
|
||
|
|
|
||
|
|
return (new PhpCsFixer\Config())
|
||
|
|
->setRiskyAllowed(true)
|
||
|
|
->setRules([
|
||
|
|
'@Symfony' => true,
|
||
|
|
'@Symfony:risky' => true,
|
||
|
|
'@PHP83Migration' => true,
|
||
|
|
'declare_strict_types' => true,
|
||
|
|
'native_function_invocation' => false,
|
||
|
|
'phpdoc_align' => false,
|
||
|
|
'binary_operator_spaces' => ['default' => 'align_single_space_minimal'],
|
||
|
|
])
|
||
|
|
->setFinder($finder);
|