update phpcs

This commit is contained in:
Robin Appelman 2026-07-15 14:42:24 +02:00
commit 9dbcdfb741
5 changed files with 23 additions and 18 deletions

19
.php-cs-fixer.dist.php Normal file
View file

@ -0,0 +1,19 @@
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'braces_position' => [
'functions_opening_brace' => 'same_line',
'anonymous_functions_opening_brace' => 'same_line',
'classes_opening_brace' => 'same_line',
],
'binary_operator_spaces' => ['operators' => ['=>' => 'align']],
])
->setIndent("\t")
->setFinder($finder)
;