This repository was archived by the owner on Jul 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.php_cs
More file actions
82 lines (80 loc) · 2.76 KB
/
.php_cs
File metadata and controls
82 lines (80 loc) · 2.76 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
$finder = Symfony\CS\Finder::create()
->notName('phpunit.xml*')
->notPath(__DIR__ . DIRECTORY_SEPARATOR . 'Tests' . DIRECTORY_SEPARATOR . 'dependency-files')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'Gass')
->in(__DIR__ . DIRECTORY_SEPARATOR . 'Tests');
return Symfony\CS\Config::create()
->level(\Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers(
array(
'array_element_no_space_before_comma',
'array_element_white_space_after_comma',
'blankline_after_open_tag',
'combine_consecutive_unsets',
'concat_with_spaces',
'controls_spaces',
'double_arrow_multiline_whitespaces',
'duplicate_semicolon',
'extra_empty_lines',
'function_typehint_space',
'hash_to_slash_comment',
'heredoc_to_nowdoc',
'include',
'join_function',
'list_commas',
'long_array_syntax',
'lowercase_cast',
'method_argument_default_value',
'multiline_array_trailing_comma',
'multiline_spaces_before_semicolon',
'namespace_no_leading_whitespace',
'native_function_casing',
'newline_after_open_tag',
'no_empty_comment',
'no_empty_lines_after_phpdocs',
'no_empty_phpdoc',
'no_empty_statement',
'no_useless_else',
'no_useless_return',
'object_operator',
'operators_spaces',
'ordered_use',
'php_unit_construct',
'php_unit_dedicate_assert',
'phpdoc_annotation_without_dot',
'phpdoc_indent',
'phpdoc_inline_tag',
'phpdoc_no_access',
'phpdoc_no_package',
'phpdoc_order',
'phpdoc_scalar',
'phpdoc_single_line_var_spacing',
'phpdoc_to_comment',
'phpdoc_trim',
'phpdoc_type_to_var',
'phpdoc_types',
'phpdoc_var_without_name',
'print_to_echo',
'remove_leading_slash_use',
'remove_lines_between_uses',
'self_accessor',
'short_bool_cast',
'short_echo_tag',
'short_scalar_cast',
'single_array_no_trailing_comma',
'single_blank_line_before_namespace',
'single_quote',
'spaces_before_semicolon',
'spaces_cast',
'standardize_not_equal',
'ternary_spaces',
'trim_array_spaces',
'unalign_double_arrow',
'unalign_equals',
'unary_operators_spaces',
'unused_use',
'whitespacy_lines',
)
)->setUsingCache(false)
->finder($finder);