1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 09:54:17 +02:00
api/.php-cs-fixer.dist.php
2022-05-16 00:51:50 +02:00

22 lines
637 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'declare_strict_types' => true,
'concat_space' => ['spacing' => 'one'],
'ternary_to_null_coalescing' => true,
'phpdoc_order' => true,
'visibility_required' => true,
])
->setFinder($finder);