File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 15
15
- name : Run PHP CS Fixer
16
16
uses : docker://oskarstark/php-cs-fixer-ga
17
17
with :
18
- args : --config=.php_cs.dist --allow-risky=yes
18
+ args : --config=.php_cs.dist.php --allow-risky=yes
19
19
20
20
- name : Commit changes
21
21
uses : stefanzweifel/git-auto-commit-action@v4
Original file line number Diff line number Diff line change 10
10
->ignoreDotFiles (true )
11
11
->ignoreVCS (true );
12
12
13
- return PhpCsFixer \Config:: create ( )
13
+ return ( new PhpCsFixer \Config () )
14
14
->setRules ([
15
15
'@PSR2 ' => true ,
16
16
'array_syntax ' => ['syntax ' => 'short ' ],
17
- 'ordered_imports ' => ['sortAlgorithm ' => 'alpha ' ],
17
+ 'ordered_imports ' => ['sort_algorithm ' => 'alpha ' ],
18
18
'no_unused_imports ' => true ,
19
19
'not_operator_with_successor_space ' => true ,
20
- 'trailing_comma_in_multiline_array ' => true ,
20
+ 'trailing_comma_in_multiline ' => true ,
21
21
'phpdoc_scalar ' => true ,
22
22
'unary_operator_spaces ' => true ,
23
23
'binary_operator_spaces ' => true ,
26
26
],
27
27
'phpdoc_single_line_var_spacing ' => true ,
28
28
'phpdoc_var_without_name ' => true ,
29
- 'class_attributes_separation ' => [
30
- 'elements ' => [
31
- 'method ' ,
32
- ],
33
- ],
34
29
'method_argument_space ' => [
35
30
'on_multiline ' => 'ensure_fully_multiline ' ,
36
31
'keep_multiple_spaces_after_comma ' => true ,
You can’t perform that action at this time.
0 commit comments