File tree 2 files changed +4
-6
lines changed
2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ jobs:
176
176
uses : shivammathur/setup-php@e6f75134d35752277f093989e72e140eaa222f35 # pin@v2
177
177
with :
178
178
coverage : none
179
- tools : php-cs-fixer:3.8 .0
179
+ tools : php-cs-fixer:3.49 .0
180
180
181
181
- name : Cache analysis data
182
182
id : finishPrepare
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
3
$ finder = PhpCsFixer \Finder::create ()
4
- ->exclude ('node_modules ' )
5
- ->exclude ('_templates ' )
6
4
->in (__DIR__ );
7
5
8
6
$ config = new PhpCsFixer \Config ();
9
7
return $ config
10
8
->setRules ([
11
- '@PSR1 ' => true ,
12
- '@PSR2 ' => true ,
9
+ '@PSR12 ' => true ,
13
10
'align_multiline_comment ' => ['comment_type ' => 'phpdocs_like ' ],
14
11
'array_indentation ' => true ,
15
12
'array_syntax ' => ['syntax ' => 'short ' ],
16
13
'cast_spaces ' => ['space ' => 'none ' ],
17
- 'class_keyword_remove ' => false ,
14
+ // 'class_keyword_remove' => true, // replaces static::class with 'static' (won't work)
18
15
'combine_consecutive_issets ' => true ,
19
16
'combine_consecutive_unsets ' => true ,
20
17
'combine_nested_dirname ' => true ,
45
42
'no_unused_imports ' => true ,
46
43
'no_useless_return ' => true ,
47
44
'ordered_imports ' => ['sort_algorithm ' => 'alpha ' ],
45
+ // 'phpdoc_add_missing_param_annotation' => ['only_untyped' => false], // adds params in the wrong order
48
46
'phpdoc_align ' => ['align ' => 'left ' ],
49
47
'phpdoc_indent ' => true ,
50
48
'phpdoc_scalar ' => true ,
You can’t perform that action at this time.
0 commit comments