smb/.php-cs-fixer.dist.php
2025-10-25 20:59:22 +02:00

22 lines
642 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2018 Robin Appelman <robin@icewind.nl>
* SPDX-License-Identifier: MIT
*/
$finder = PhpCsFixer\Finder::create()->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);