1 | <?php |
||
2 | |||
3 | use PhpCsFixer\Config; |
||
4 | use PhpCsFixer\Finder; |
||
5 | |||
6 | $finder = Finder::create() |
||
7 | ->notPath('Fixtures') |
||
8 | ->notPath('_generated') |
||
9 | ->in( |
||
10 | [ |
||
11 | __DIR__.'/src', |
||
12 | __DIR__.'/tests' |
||
13 | ] |
||
14 | ); |
||
15 | |||
16 | return Config::create() |
||
0 ignored issues
–
show
|
|||
17 | ->setRiskyAllowed(true) |
||
18 | ->setRules( |
||
19 | [ |
||
20 | '@PHP73Migration' => true, |
||
21 | '@PHP71Migration:risky' => true, |
||
22 | '@DoctrineAnnotation' => true, |
||
23 | '@PhpCsFixer' => true, |
||
24 | '@PhpCsFixer:risky' => true, |
||
25 | '@PHPUnit75Migration:risky' => true, |
||
26 | 'array_syntax' => ['syntax' => 'short'], |
||
27 | 'combine_consecutive_unsets' => true, |
||
28 | 'heredoc_to_nowdoc' => true, |
||
29 | 'list_syntax' => ['syntax' => 'long'], |
||
30 | 'no_extra_blank_lines' => [ |
||
31 | 'break', |
||
32 | 'continue', |
||
33 | 'extra', |
||
34 | 'return', |
||
35 | 'throw', |
||
36 | 'use', |
||
37 | 'parenthesis_brace_block', |
||
38 | 'square_brace_block', |
||
39 | 'curly_brace_block', |
||
40 | ], |
||
41 | 'mb_str_functions' => true, |
||
42 | 'new_with_braces' => true, |
||
43 | 'blank_line_after_opening_tag' => false, |
||
44 | 'linebreak_after_opening_tag' => false, |
||
45 | 'no_short_echo_tag' => true, |
||
46 | 'no_unreachable_default_argument_value' => true, |
||
47 | 'no_useless_else' => true, |
||
48 | 'no_useless_return' => true, |
||
49 | 'ordered_class_elements' => true, |
||
50 | 'ordered_imports' => true, |
||
51 | 'php_unit_strict' => [ |
||
52 | 'assertAttributeEquals', |
||
53 | 'assertAttributeNotEquals', |
||
54 | ], |
||
55 | 'php_unit_test_class_requires_covers' => false, |
||
56 | 'phpdoc_add_missing_param_annotation' => true, |
||
57 | 'phpdoc_order' => true, |
||
58 | 'semicolon_after_instruction' => true, |
||
59 | 'strict_comparison' => true, |
||
60 | 'strict_param' => true, |
||
61 | 'doctrine_annotation_braces' => true, |
||
62 | 'doctrine_annotation_indentation' => true, |
||
63 | 'doctrine_annotation_spaces' => true, |
||
64 | 'visibility_required' => ['property', 'method', 'const'], |
||
65 | 'declare_strict_types' => true, |
||
66 | 'concat_space' => ['spacing' => 'one'], |
||
67 | 'align_multiline_comment' => true, |
||
68 | 'fully_qualified_strict_types' => true, |
||
69 | 'method_chaining_indentation' => true, |
||
70 | 'native_function_invocation' => true, |
||
71 | 'no_alternative_syntax' => true, |
||
72 | 'php_unit_set_up_tear_down_visibility' => true, |
||
73 | 'phpdoc_trim_consecutive_blank_line_separation' => true, |
||
74 | 'return_assignment' => true, |
||
75 | 'php_unit_test_case_static_method_calls' => ['call_type' => 'self'], |
||
76 | 'php_unit_test_annotation' => ['style' => 'annotation'], |
||
77 | 'logical_operators' => true, |
||
78 | ] |
||
79 | ) |
||
80 | ->setFinder($finder); |
||
81 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.