Skip to content

Commit 1428826

Browse files
committed
Ensure .php_cs matches .styleci.yml
1 parent 4468b88 commit 1428826

File tree

1 file changed

+75
-6
lines changed

1 file changed

+75
-6
lines changed

.php_cs

Lines changed: 75 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,79 @@
33
$finder = Symfony\CS\Finder\DefaultFinder::create()
44
->in(__DIR__);
55

6+
$fixers = array(
7+
'alias_functions',
8+
'blankline_after_open_tag',
9+
'braces',
10+
'concat_without_spaces',
11+
'double_arrow_multiline_whitespaces',
12+
'duplicate_semicolon',
13+
'elseif',
14+
'empty_return',
15+
'encoding',
16+
'eof_ending',
17+
'extra_empty_lines',
18+
'function_call_space',
19+
'function_declaration',
20+
'function_typehint_space',
21+
'include',
22+
'indentation',
23+
'line_after_namespace',
24+
'linefeed',
25+
'list_commas',
26+
'logical_not_operators_with_successor_space',
27+
'lowercase_constants',
28+
'lowercase_keywords',
29+
'method_argument_space',
30+
'method_separation',
31+
'multiline_array_trailing_comma',
32+
'multiline_spaces_before_semicolon',
33+
'multiple_use',
34+
'namespace_no_leading_whitespace',
35+
'no_blank_lines_after_class_opening',
36+
'no_empty_lines_after_phpdocs',
37+
'object_operator',
38+
'operators_spaces',
39+
'parenthesis',
40+
'php_closing_tag',
41+
'phpdoc_align',
42+
'phpdoc_indent',
43+
'phpdoc_inline_tag',
44+
'phpdoc_no_access',
45+
'phpdoc_no_package',
46+
'phpdoc_order',
47+
'phpdoc_scalar',
48+
'phpdoc_separation',
49+
'phpdoc_short_description',
50+
'phpdoc_to_comment',
51+
'phpdoc_trim',
52+
'phpdoc_type_to_var',
53+
'phpdoc_var_without_name',
54+
'remove_leading_slash_use',
55+
'remove_lines_between_uses',
56+
'return',
57+
'self_accessor',
58+
'short_array_syntax',
59+
'short_tag',
60+
'single_array_no_trailing_comma',
61+
'single_blank_line_before_namespace',
62+
'single_line_after_imports',
63+
'single_quote',
64+
'spaces_before_semicolon',
65+
'spaces_cast',
66+
'standardize_not_equal',
67+
'ternary_spaces',
68+
'trailing_spaces',
69+
'trim_array_spaces',
70+
'unalign_equals',
71+
'unary_operators_spaces',
72+
'unused_use',
73+
'visibility',
74+
'whitespacy_lines',
75+
);
76+
677
return Symfony\CS\Config\Config::create()
7-
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
8-
->fixers(array(
9-
'short_array_syntax',
10-
'-psr0'
11-
))
12-
->finder($finder);
78+
->finder($finder)
79+
->fixers($fixers)
80+
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
81+
->setUsingCache(true);

0 commit comments

Comments
 (0)