File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ jobs:
47
47
with :
48
48
php-version : ' 7.4'
49
49
coverage : none
50
- tools : php-cs-fixer, phpcs
50
+ tools : cs2pr, php-cs-fixer, phpcs
51
51
- name : Run PHP Coding Standards Fixer
52
- run : php-cs-fixer fix -v -- dry-run --allow-risky=yes --using-cache=no
52
+ run : php-cs-fixer fix -- dry-run --using-cache=no --format=checkstyle | cs2pr
53
53
- name : Run PHP_CodeSniffer
54
- run : phpcs -p -- standard=PSR12 src tests --exclude=PSR12.Properties.ConstantVisibility
54
+ run : phpcs -- standard=PSR12 --exclude=PSR12.Properties.ConstantVisibility -q --report=checkstyle src tests | cs2pr
55
55
coverage :
56
56
runs-on : ubuntu-latest
57
57
steps :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ $finder = \PhpCsFixer\Finder::create()
5
5
->in (__DIR__ . '/tests ' );
6
6
7
7
return \PhpCsFixer \Config::create ()
8
+ ->setRiskyAllowed (true )
8
9
->setRules ([
9
10
'@PSR2 ' => true ,
10
11
You can’t perform that action at this time.
0 commit comments