baikal/.php-cs-fixer.dist.php
2021-11-26 10:11:37 +05:45

23 lines
641 B
PHP

<?php
$config = new PhpCsFixer\Config;
$config->getFinder()
->exclude('vendor')
->in(__DIR__);
$config->setRules([
'@PSR2' => true,
'@Symfony' => true,
'binary_operator_spaces' => [],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'concat_space' => ['spacing' => 'one'],
'no_superfluous_phpdoc_tags' => false,
'no_unneeded_control_parentheses' => false,
'phpdoc_align' => false,
'single_line_comment_style' => false,
'single_quote' => false,
'trailing_comma_in_multiline' => true,
'visibility_required' => false,
'yoda_style' => false
]);
return $config;