searchdav/.php-cs-fixer.dist.php

19 lines
479 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR12' => 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)
;