|
11 | 11 |
|
12 | 12 | return PhpCsFixer\Config::create()
|
13 | 13 | ->setRiskyAllowed(true)
|
14 |
| - ->setRules(array( |
15 |
| - '@Symfony' => true, |
16 |
| - '@Symfony:risky' => true, |
17 |
| - 'align_multiline_comment' => true, |
18 |
| - 'array_indentation' => true, |
19 |
| - 'array_syntax' => ['syntax' => 'short'], |
20 |
| - 'blank_line_before_statement' => true, |
21 |
| - 'combine_consecutive_issets' => true, |
22 |
| - 'combine_consecutive_unsets' => true, |
23 |
| - 'comment_to_phpdoc' => true, |
24 |
| - 'compact_nullable_typehint' => true, |
25 |
| - 'escape_implicit_backslashes' => true, |
26 |
| - 'explicit_indirect_variable' => true, |
27 |
| - 'explicit_string_variable' => true, |
28 |
| - 'final_internal_class' => true, |
29 |
| - 'fully_qualified_strict_types' => true, |
30 |
| - 'function_to_constant' => ['functions' => ['get_class', 'get_called_class', 'php_sapi_name', 'phpversion', 'pi']], |
| 14 | + ->setRules([ |
| 15 | + '@PhpCsFixer' => true, |
| 16 | + '@PhpCsFixer:risky' => true, |
31 | 17 | 'header_comment' => ['header' => $header],
|
32 |
| - 'heredoc_to_nowdoc' => true, |
33 |
| - 'list_syntax' => ['syntax' => 'long'], |
34 |
| - 'logical_operators' => true, |
35 |
| - 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], |
36 |
| - 'method_chaining_indentation' => true, |
37 |
| - 'multiline_comment_opening_closing' => true, |
38 |
| - 'no_alternative_syntax' => true, |
39 |
| - 'no_binary_string' => true, |
40 |
| - 'no_extra_blank_lines' => ['tokens' => ['break', 'continue', 'extra', 'return', 'throw', 'use', 'parenthesis_brace_block', 'square_brace_block', 'curly_brace_block']], |
41 |
| - 'no_null_property_initialization' => true, |
42 |
| - 'no_short_echo_tag' => true, |
43 |
| - 'no_superfluous_elseif' => true, |
44 |
| - 'no_unneeded_curly_braces' => true, |
45 |
| - 'no_unneeded_final_method' => true, |
46 |
| - 'no_unreachable_default_argument_value' => true, |
47 |
| - 'no_unset_on_property' => true, |
48 |
| - 'no_useless_else' => true, |
49 |
| - 'no_useless_return' => true, |
50 |
| - 'ordered_class_elements' => true, |
51 |
| - 'ordered_imports' => true, |
52 |
| - 'phpdoc_add_missing_param_annotation' => true, |
53 |
| - 'phpdoc_order' => true, |
54 |
| - 'phpdoc_trim_consecutive_blank_line_separation' => true, |
55 |
| - 'phpdoc_types_order' => true, |
56 |
| - 'return_assignment' => true, |
57 |
| - 'semicolon_after_instruction' => true, |
58 |
| - 'single_line_comment_style' => true, |
59 |
| - 'strict_comparison' => true, |
60 |
| - 'strict_param' => true, |
61 |
| - )) |
| 18 | + 'php_unit_strict' => false, |
| 19 | + ]) |
62 | 20 | ->setFinder(
|
63 | 21 | PhpCsFixer\Finder::create()
|
64 | 22 | ->in(__DIR__)
|
|
0 commit comments