File tree Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Expand file tree Collapse file tree 3 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 7
7
/stubs
8
8
.phpunit.result.cache
9
9
/.vscode
10
- .php_cs .cache
10
+ .php-cs-fixer .cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ use PhpCsFixer \Config ;
4
+
5
+ $ finder = PhpCsFixer \Finder::create ()
6
+ ->in ('lib ' )
7
+ ->in ('tests ' )
8
+ ->exclude ([
9
+ 'Workspace ' ,
10
+ 'Integration/Composer/project '
11
+ ])
12
+ ;
13
+
14
+ return (new Config ())
15
+ ->setRiskyAllowed (true )
16
+ ->setRules ([
17
+ '@PSR2 ' => true ,
18
+ 'no_unused_imports ' => true ,
19
+ 'array_syntax ' => ['syntax ' => 'short ' ],
20
+ 'void_return ' => true ,
21
+ 'ordered_class_elements ' => true ,
22
+ 'single_quote ' => true ,
23
+ 'heredoc_indentation ' => true ,
24
+ 'global_namespace_import ' => true ,
25
+ ])
26
+ ->setFinder ($ finder )
27
+ ;
28
+
Original file line number Diff line number Diff line change 20
20
"phpunit/phpunit" : " ^9.0" ,
21
21
"symfony/filesystem" : " ^4.2 || ^5.0" ,
22
22
"phpspec/prophecy-phpunit" : " ^2.0" ,
23
- "symfony/var-dumper" : " ^6.0"
23
+ "symfony/var-dumper" : " ^6.0 || ^5.0 "
24
24
},
25
25
"extra" : {
26
26
"branch-alias" : {
You can’t perform that action at this time.
0 commit comments