|
1 | 1 | <?php |
2 | 2 |
|
3 | | -$finder = Symfony\CS\Finder::create() |
| 3 | +$finder = PhpCsFixer\Finder::create() |
4 | 4 | ->exclude('vendor') |
5 | 5 | ->in([__DIR__]); |
6 | 6 |
|
7 | | -$config = Symfony\CS\Config::create() |
8 | | - ->fixers([ |
9 | | - '-phpdoc_params', |
10 | | - '-phpdoc_short_description', |
11 | | - '-phpdoc_inline_tag', |
12 | | - '-pre_increment', |
13 | | - '-heredoc_to_nowdoc', |
14 | | - '-spaces_cast', |
15 | | - '-include', |
16 | | - '-phpdoc_no_package', |
17 | | - 'concat_with_spaces', |
18 | | - 'ordered_use', |
19 | | - 'short_array_syntax', |
| 7 | +$config = PhpCsFixer\Config::create() |
| 8 | + ->setUsingCache(false) |
| 9 | + ->setRules([ |
| 10 | + 'phpdoc_align' => false, |
| 11 | + 'phpdoc_summary' => false, |
| 12 | + 'phpdoc_inline_tag' => false, |
| 13 | + 'pre_increment' => false, |
| 14 | + 'heredoc_to_nowdoc' => false, |
| 15 | + 'cast_spaces' => false, |
| 16 | + 'include' => false, |
| 17 | + 'phpdoc_no_package' => false, |
| 18 | + 'concat_space' => ['spacing' => 'one'], |
| 19 | + 'ordered_imports' => true, |
| 20 | + 'single_quote' => true, |
| 21 | + 'no_empty_comment' => true, |
| 22 | + 'no_empty_phpdoc' => true, |
| 23 | + 'no_empty_statement' => true, |
| 24 | + 'no_spaces_inside_parenthesis' => true, |
| 25 | + 'no_trailing_whitespace' => true, |
| 26 | + 'no_trailing_whitespace_in_comment' => true, |
| 27 | + 'phpdoc_order' => true, |
| 28 | + 'trim_array_spaces' => true, |
| 29 | + 'array_syntax' => ['syntax' => 'short'], |
20 | 30 | ]) |
21 | | - ->finder($finder); |
| 31 | + ->setFinder($finder); |
22 | 32 |
|
23 | 33 | return $config; |
0 commit comments