File tree Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Expand file tree Collapse file tree 5 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 1
1
.phpunit.result.cache
2
2
3
3
/.idea
4
- /.php_cs
5
- /.php_cs.cache
6
- /.php_cs .tests.cache
4
+ /.php-cs-fixer.cache
5
+ /.php-cs-fixer.php
6
+ /.php-cs-fixer .tests.cache
7
7
/composer.lock
8
8
/vendor
Original file line number Diff line number Diff line change 30
30
],
31
31
'return_type_declaration ' => true ,
32
32
'short_scalar_cast ' => true ,
33
- 'single_blank_line_before_namespace ' => true ,
34
33
'single_trait_insert_per_statement ' => true ,
35
34
'ternary_operator_spaces ' => true ,
36
35
'visibility_required ' => [
56
55
'no_unused_imports ' => true ,
57
56
'single_quote ' => true ,
58
57
'space_after_semicolon ' => true ,
59
- 'trailing_comma_in_multiline_array ' => true ,
58
+ 'trailing_comma_in_multiline ' => true ,
60
59
'trim_array_spaces ' => true ,
61
60
'unary_operator_spaces ' => true ,
62
61
'whitespace_after_comma_in_array ' => true ,
Original file line number Diff line number Diff line change 5
5
->in (__DIR__ )
6
6
->exclude ('tests ' );
7
7
8
- $ config = require __DIR__ . '/.php_cs .common.php ' ;
8
+ $ config = require __DIR__ . '/.php-cs-fixer .common.php ' ;
9
9
10
- return PhpCsFixer \Config:: create ( )
10
+ return ( new PhpCsFixer \Config () )
11
11
->setFinder ($ finder )
12
12
->setRules ($ config )
13
13
->setRiskyAllowed (true )
14
- ->setCacheFile (__DIR__ . '/.php_cs .cache ' );
14
+ ->setCacheFile (__DIR__ . '/.php-cs-fixer .cache ' );
Original file line number Diff line number Diff line change 5
5
->in (__DIR__ . '/tests ' )
6
6
->exclude ('__snapshots__ ' );
7
7
8
- $ config = require __DIR__ . '/.php_cs .common.php ' ;
8
+ $ config = require __DIR__ . '/.php-cs-fixer .common.php ' ;
9
9
10
10
// Additional rules for tests
11
11
$ config = array_merge (
15
15
]
16
16
);
17
17
18
- return PhpCsFixer \Config:: create ( )
18
+ return ( new PhpCsFixer \Config () )
19
19
->setFinder ($ finder )
20
20
->setRules ($ config )
21
21
->setRiskyAllowed (true )
22
- ->setCacheFile (__DIR__ . '/.php_cs .tests.cache ' );
22
+ ->setCacheFile (__DIR__ . '/.php-cs-fixer .tests.cache ' );
Original file line number Diff line number Diff line change 33
33
},
34
34
"require-dev" : {
35
35
"ext-pdo_sqlite" : " *" ,
36
- "friendsofphp/php-cs-fixer" : " ^2 " ,
36
+ "friendsofphp/php-cs-fixer" : " ^3 " ,
37
37
"illuminate/config" : " ^9 || ^10" ,
38
38
"illuminate/view" : " ^9 || ^10" ,
39
39
"mockery/mockery" : " ^1.4" ,
81
81
],
82
82
"fix-style" : [
83
83
" php-cs-fixer fix" ,
84
- " php-cs-fixer fix --config=.php_cs .tests.php"
84
+ " php-cs-fixer fix --config=.php-cs-fixer .tests.php"
85
85
],
86
86
"psalm-set-baseline" : " psalm --set-baseline=psalm-baseline.xml" ,
87
87
"test" : " phpunit" ,
You can’t perform that action at this time.
0 commit comments