1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00
api/.php_cs.dist
2017-07-30 15:07:18 +02:00

21 lines
626 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);
return PhpCsFixer\Config::create()
->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);