mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
add php-cs-fixer config
This commit is contained in:
parent
24e0162914
commit
de8e83ce7e
1 changed files with 15 additions and 0 deletions
15
.php_cs.dist
Normal file
15
.php_cs.dist
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
<?php
|
||||||
|
$finder = PhpCsFixer\Finder::create()
|
||||||
|
->exclude('vendor')
|
||||||
|
->in(__DIR__)
|
||||||
|
;
|
||||||
|
return PhpCsFixer\Config::create()
|
||||||
|
->setRules([
|
||||||
|
'@PSR2' => true,
|
||||||
|
'array_syntax' => ['syntax' => 'short'],
|
||||||
|
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
|
||||||
|
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => false],
|
||||||
|
])
|
||||||
|
->setIndent("\t")
|
||||||
|
->setFinder($finder)
|
||||||
|
;
|
||||||
Loading…
Add table
Add a link
Reference in a new issue