code style

This commit is contained in:
Robin Appelman 2025-10-24 17:12:37 +02:00
commit dae8dea06c
8 changed files with 15 additions and 15 deletions

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

@ -0,0 +1,24 @@
<?php
/**
* SPDX-FileCopyrightText: 2018 Robin Appelman <robin@icewind.nl>
* SPDX-License-Identifier: MIT
*/
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
],
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'binary_operator_spaces' => ['operators' => ['=>' => 'align_single_space']],
])
->setIndent("\t")
->setFinder($finder);