2020-02-17 22:02:39 -05:00
|
|
|
<?php
|
|
|
|
|
2021-11-25 22:56:04 -05:00
|
|
|
$config = new PhpCsFixer\Config;
|
2020-02-17 22:02:39 -05:00
|
|
|
$config->getFinder()
|
|
|
|
->exclude('vendor')
|
|
|
|
->in(__DIR__);
|
|
|
|
$config->setRules([
|
2020-02-18 00:09:56 -05:00
|
|
|
'@PSR2' => true,
|
|
|
|
'@Symfony' => true,
|
2021-11-25 22:56:04 -05:00
|
|
|
'binary_operator_spaces' => [],
|
2024-02-04 15:16:14 -05:00
|
|
|
'braces_position' => [
|
|
|
|
'functions_opening_brace' => 'same_line',
|
|
|
|
'classes_opening_brace' => 'same_line'],
|
2020-02-18 00:09:56 -05:00
|
|
|
'concat_space' => ['spacing' => 'one'],
|
2024-02-04 15:16:14 -05:00
|
|
|
'fully_qualified_strict_types' => false,
|
2020-02-18 00:09:56 -05:00
|
|
|
'no_superfluous_phpdoc_tags' => false,
|
|
|
|
'no_unneeded_control_parentheses' => false,
|
|
|
|
'phpdoc_align' => false,
|
|
|
|
'single_line_comment_style' => false,
|
2024-02-04 15:16:14 -05:00
|
|
|
'single_line_comment_spacing' => false,
|
2020-02-18 00:09:56 -05:00
|
|
|
'single_quote' => false,
|
2021-11-25 22:56:04 -05:00
|
|
|
'trailing_comma_in_multiline' => true,
|
2020-02-18 00:09:56 -05:00
|
|
|
'visibility_required' => false,
|
|
|
|
'yoda_style' => false
|
2020-02-17 22:02:39 -05:00
|
|
|
]);
|
|
|
|
|
|
|
|
return $config;
|