-
Notifications
You must be signed in to change notification settings - Fork 2
/
.php-cs-fixer.dist.php
50 lines (48 loc) · 1.79 KB
/
.php-cs-fixer.dist.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
# https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/3.0/doc/rules/index.rst
$finder = PhpCsFixer\Finder::create()
->in(['src', 'tests'])
->exclude(['vendor'])
;
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@PHP80Migration' => true,
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'blank_line_before_statement' => true,
'constant_case' => true,
'increment_style' => false,
'lowercase_keywords' => true,
'normalize_index_brace' => true,
'no_closing_tag' => true,
'no_extra_blank_lines' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => true,
'no_superfluous_phpdoc_tags' => false,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_align' => false,
'phpdoc_order' => true,
'phpdoc_separation' => false,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_first'],
'protected_to_private' => true,
'single_blank_line_at_eof' => true,
'single_blank_line_before_namespace' => true,
'single_line_comment_style' => false,
'single_line_throw' => false,
'single_quote' => false,
'single_trait_insert_per_statement' => true,
'yoda_style' => true,
'whitespace_after_comma_in_array' => true,
])
->setFinder($finder)
;