new flake setup

This commit is contained in:
Robin Appelman 2025-10-25 17:51:52 +02:00
commit 9fe44e475a
5 changed files with 4643 additions and 40 deletions

View file

@ -5,19 +5,17 @@
* SPDX-License-Identifier: MIT
*/
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
$finder = PhpCsFixer\Finder::create()->in(__DIR__);
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'@PSR2' => true,
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space']],
])
->setIndent("\t")