File tree 6 files changed +35
-10
lines changed
6 files changed +35
-10
lines changed Original file line number Diff line number Diff line change 1
1
.gitattributes export-ignore
2
2
.gitignore export-ignore
3
3
.scrutinizer.yml export-ignore
4
- .styleci.yml export-ignore
5
4
.travis.yml export-ignore
6
5
phpunit.xml.dist export-ignore
7
6
Resources /doc export-ignore
Original file line number Diff line number Diff line change 37
37
uses : docker://oskarstark/phpstan-ga
38
38
with :
39
39
args : analyze --no-progress -c phpstan.tests.neon.dist
40
+
41
+ php-cs-fixer :
42
+ name : PHP-CS-Fixer
43
+ runs-on : ubuntu-latest
44
+
45
+ steps :
46
+ - name : Checkout code
47
+ uses : actions/checkout@v4
48
+
49
+ - name : PHP-CS-Fixer
50
+ uses : docker://oskarstark/php-cs-fixer-ga
51
+ with :
52
+ args : --dry-run --diff
Original file line number Diff line number Diff line change 3
3
composer.lock
4
4
phpunit.xml
5
5
Resources /doc /_build
6
+ .php-cs-fixer.cache
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ $ finder = PhpCsFixer \Finder::create ()
4
+ ->in (__DIR__ .'/src ' )
5
+ ->in (__DIR__ .'/tests ' )
6
+ ->name ('*.php ' )
7
+ ;
8
+
9
+ $ config = new PhpCsFixer \Config ();
10
+
11
+ return $ config
12
+ ->setRiskyAllowed (true )
13
+ ->setRules ([
14
+ '@Symfony ' => true ,
15
+ 'single_line_throw ' => false ,
16
+ ])
17
+ ->setFinder ($ finder )
18
+ ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 59
59
"phpstan/phpstan" : " ^1.10" ,
60
60
"phpstan/phpstan-symfony" : " ^1.3" ,
61
61
"phpstan/extension-installer" : " ^1.3" ,
62
- "jean-beru/fos-http-cache-cloudfront" : " ^1.1"
62
+ "jean-beru/fos-http-cache-cloudfront" : " ^1.1" ,
63
+ "friendsofphp/php-cs-fixer" : " ^3.54"
63
64
},
64
65
"suggest" : {
65
66
"jean-beru/fos-http-cache-cloudfront" : " To use CloudFront proxy" ,
90
91
"phpstan/extension-installer" : true
91
92
}
92
93
}
93
- }
94
+ }
You can’t perform that action at this time.
0 commit comments