|
1 | 1 | <?php |
2 | 2 |
|
3 | | -return (new PhpCsFixer\Config()) |
| 3 | +use PhpCsFixer\Config; |
| 4 | + |
| 5 | +return (new Config()) |
4 | 6 | ->setUsingCache(false) |
5 | 7 | ->setRiskyAllowed(true) |
6 | 8 | ->setRules( |
|
19 | 21 | 'concat_space' => ['spacing' => 'one'], |
20 | 22 | 'compact_nullable_typehint' => true, |
21 | 23 | 'declare_equal_normalize' => ['space' => 'single'], |
| 24 | + 'general_phpdoc_annotation_remove' => [ |
| 25 | + 'annotations' => [ |
| 26 | + 'author', |
| 27 | + 'package', |
| 28 | + ], |
| 29 | + ], |
22 | 30 | 'increment_style' => ['style' => 'post'], |
23 | 31 | 'list_syntax' => ['syntax' => 'short'], |
24 | 32 | 'echo_tag_syntax' => ['format' => 'long'], |
|
32 | 40 | 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], |
33 | 41 | 'ordered_imports' => [ |
34 | 42 | 'sort_algorithm' => 'alpha', |
35 | | - 'imports_order' => ['class', 'const', 'function'] |
| 43 | + 'imports_order' => ['class', 'const', 'function'], |
36 | 44 | ], |
37 | 45 | 'single_line_throw' => false, |
| 46 | + 'declare_strict_types' => false, |
| 47 | + 'blank_line_between_import_groups' => true, |
| 48 | + 'fully_qualified_strict_types' => true, |
| 49 | + 'global_namespace_import' => false, |
| 50 | + 'no_null_property_initialization' => false, |
| 51 | + 'operator_linebreak' => [ |
| 52 | + 'only_booleans' => true, |
| 53 | + 'position' => 'beginning', |
| 54 | + ], |
| 55 | + 'global_namespace_import' => [ |
| 56 | + 'import_classes' => true, |
| 57 | + 'import_constants' => null, |
| 58 | + 'import_functions' => null |
| 59 | + ] |
38 | 60 | ] |
39 | 61 | ) |
40 | 62 | ->setFinder( |
|
0 commit comments