|
12 | 12 | (c) A51 doo <[email protected]>. All rights reserved.
|
13 | 13 | EOF;
|
14 | 14 |
|
15 |
| -return (new PhpCsFixer\Config('psr2'))->setRules([ |
16 |
| - 'header_comment' => ['header' => $header, 'location' => 'after_open'], |
17 |
| - 'no_whitespace_before_comma_in_array' => true, |
18 |
| - 'whitespace_after_comma_in_array' => true, |
19 |
| - 'no_multiline_whitespace_around_double_arrow' => true, |
20 |
| - 'hash_to_slash_comment' => true, |
21 |
| - 'include' => true, |
22 |
| - 'trailing_comma_in_multiline_array' => true, |
23 |
| - 'no_leading_namespace_whitespace' => true, |
24 |
| - 'no_blank_lines_after_class_opening' => true, |
25 |
| - 'no_blank_lines_after_phpdoc' => true, |
26 |
| - 'phpdoc_scalar' => true, |
27 |
| - 'phpdoc_summary' => true, |
28 |
| - 'self_accessor' => true, |
29 |
| - 'no_trailing_comma_in_singleline_array' => true, |
30 |
| - 'single_blank_line_before_namespace' => true, |
31 |
| - 'space_after_semicolon' => true, |
32 |
| - 'no_singleline_whitespace_before_semicolons' => true, |
33 |
| - 'cast_spaces' => true, |
34 |
| - 'standardize_not_equals' => true, |
35 |
| - 'ternary_operator_spaces' => true, |
36 |
| - 'trim_array_spaces' => true, |
37 |
| - 'no_unused_imports' => true, |
38 |
| - 'no_whitespace_in_blank_line' => true, |
39 |
| - 'ordered_imports' => true, |
40 |
| - 'array_syntax' => ['syntax' => 'short'], |
41 |
| - 'phpdoc_align' => true, |
42 |
| - 'return_type_declaration' => true, |
43 |
| - 'single_blank_line_at_eof' => true, |
44 |
| - 'single_line_after_imports' => true, |
45 |
| - 'single_quote' => true, |
46 |
| - 'phpdoc_separation' => false, |
47 |
| - 'phpdoc_no_package' => false, |
48 |
| - 'no_mixed_echo_print' => false, |
49 |
| - 'concat_space' => false, |
50 |
| - 'simplified_null_return' => false, |
51 |
| -])->setFinder((new PhpCsFixer\Finder())->in([__DIR__ . '/src', __DIR__ . '/test'])); |
| 15 | +return (new PhpCsFixer\Config('psr2'))->setRules( |
| 16 | + [ |
| 17 | + 'header_comment' => [ |
| 18 | + 'header' => $header, |
| 19 | + 'location' => 'after_open', |
| 20 | + ], |
| 21 | + 'function_typehint_space' => true, |
| 22 | + 'method_argument_space' => true, |
| 23 | + 'no_trailing_whitespace' => true, |
| 24 | + 'no_whitespace_before_comma_in_array' => true, |
| 25 | + 'whitespace_after_comma_in_array' => true, |
| 26 | + 'no_multiline_whitespace_around_double_arrow' => true, |
| 27 | + 'hash_to_slash_comment' => true, |
| 28 | + 'include' => true, |
| 29 | + 'trailing_comma_in_multiline_array' => true, |
| 30 | + 'no_leading_namespace_whitespace' => true, |
| 31 | + 'no_blank_lines_after_phpdoc' => true, |
| 32 | + 'phpdoc_scalar' => true, |
| 33 | + 'phpdoc_summary' => true, |
| 34 | + 'self_accessor' => true, |
| 35 | + 'no_trailing_comma_in_singleline_array' => true, |
| 36 | + 'single_blank_line_before_namespace' => true, |
| 37 | + 'space_after_semicolon' => true, |
| 38 | + 'no_singleline_whitespace_before_semicolons' => true, |
| 39 | + 'cast_spaces' => true, |
| 40 | + 'standardize_not_equals' => true, |
| 41 | + 'ternary_operator_spaces' => true, |
| 42 | + 'trim_array_spaces' => true, |
| 43 | + 'no_unused_imports' => true, |
| 44 | + 'no_whitespace_in_blank_line' => true, |
| 45 | + 'ordered_imports' => true, |
| 46 | + 'array_syntax' => ['syntax' => 'short'], |
| 47 | + 'phpdoc_align' => true, |
| 48 | + 'return_type_declaration' => true, |
| 49 | + 'single_quote' => true, |
| 50 | + 'phpdoc_separation' => false, |
| 51 | + 'phpdoc_no_package' => false, |
| 52 | + 'no_mixed_echo_print' => false, |
| 53 | + 'concat_space' => false, |
| 54 | + 'simplified_null_return' => false, |
| 55 | + 'single_blank_line_at_eof' => true, |
| 56 | + ] |
| 57 | +)->setFinder((new PhpCsFixer\Finder())->in( |
| 58 | + [ |
| 59 | + __DIR__ . '/src', |
| 60 | + __DIR__ . '/test' |
| 61 | + ] |
| 62 | +)); |
0 commit comments