groupfolders/.php_cs.dist

21 lines
601 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->exclude('3rdparty')
->exclude('composer')
->exclude('3rdparty')
->exclude('build')
->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' => false, 'align_equals' => false],
'align_multiline_comment' => ['comment_type' => 'all_multiline'],
'method_argument_space' => ['ensure_fully_multiline' => true]
])
->setIndent("\t")
->setFinder($finder);