|
15 | 15 | '@Symfony:risky' => true, |
16 | 16 | 'array_syntax' => ['syntax' => 'short'], |
17 | 17 | 'combine_consecutive_unsets' => true, |
18 | | - // one should use PHPUnit methods to set up expected exception instead of annotations |
19 | | - 'general_phpdoc_annotation_remove' => [ |
20 | | - 'annotations' => [ |
21 | | - 'expectedException', |
22 | | - 'expectedExceptionMessage', |
23 | | - 'expectedExceptionMessageRegExp', |
24 | | - ] |
25 | | - ], |
26 | | - 'heredoc_to_nowdoc' => true, |
27 | | - 'no_extra_blank_lines' => [ |
28 | | - 'tokens' => [ |
29 | | - 'break', |
30 | | - 'continue', |
31 | | - 'extra', |
32 | | - 'return', |
33 | | - 'throw', |
34 | | - 'use', |
35 | | - 'parenthesis_brace_block', |
36 | | - 'square_brace_block', |
37 | | - 'curly_brace_block' |
38 | | - ], |
39 | | - ], |
40 | | - 'no_unreachable_default_argument_value' => true, |
41 | | - 'no_useless_else' => true, |
42 | | - 'no_useless_return' => true, |
43 | | - 'ordered_class_elements' => true, |
44 | | - 'ordered_imports' => true, |
45 | | - 'php_unit_strict' => true, |
46 | | - 'phpdoc_add_missing_param_annotation' => true, |
47 | | - 'phpdoc_order' => true, |
48 | | - 'semicolon_after_instruction' => true, |
49 | | - 'strict_comparison' => true, |
50 | | - 'strict_param' => true, |
51 | | - 'concat_space' => ['spacing' => 'one'], |
52 | | - ]) |
53 | | - ->setFinder($finder) |
54 | | -; |
| 18 | + // one should use PHPUnit methods to set up expected exception instead of annotations |
| 19 | + 'general_phpdoc_annotation_remove' => [ |
| 20 | + 'annotations' => [ |
| 21 | + 'expectedException', |
| 22 | + 'expectedExceptionMessage', |
| 23 | + 'expectedExceptionMessageRegExp', |
| 24 | + ] |
| 25 | + ], |
| 26 | + 'global_namespace_import' => [ |
| 27 | + 'import_classes' => true, |
| 28 | + 'import_constants' => true, |
| 29 | + ], |
| 30 | + 'heredoc_to_nowdoc' => true, |
| 31 | + 'no_extra_blank_lines' => [ |
| 32 | + 'tokens' => [ |
| 33 | + 'break', |
| 34 | + 'continue', |
| 35 | + 'extra', |
| 36 | + 'return', |
| 37 | + 'throw', |
| 38 | + 'use', |
| 39 | + 'parenthesis_brace_block', |
| 40 | + 'square_brace_block', |
| 41 | + 'curly_brace_block' |
| 42 | + ], |
| 43 | + ], |
| 44 | + 'no_unreachable_default_argument_value' => true, |
| 45 | + 'no_useless_else' => true, |
| 46 | + 'no_useless_return' => true, |
| 47 | + 'ordered_class_elements' => true, |
| 48 | + 'ordered_imports' => true, |
| 49 | + 'php_unit_strict' => true, |
| 50 | + 'phpdoc_add_missing_param_annotation' => true, |
| 51 | + 'phpdoc_order' => true, |
| 52 | + 'semicolon_after_instruction' => true, |
| 53 | + 'strict_comparison' => true, |
| 54 | + 'strict_param' => true, |
| 55 | + 'concat_space' => ['spacing' => 'one'], |
| 56 | + ]) |
| 57 | + ->setFinder($finder); |
55 | 58 |
|
56 | 59 | return $config; |
0 commit comments