File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ <?php
2
+ if (!file_exists (__DIR__ .'/src ' )) {
3
+ exit (0 );
4
+ }
5
+ return PhpCsFixer \Config::create ()
6
+ ->setRules (
7
+ [
8
+ '@PSR2 ' => true ,
9
+ 'array_syntax ' => ['syntax ' => 'short ' ],
10
+ 'protected_to_private ' => false
11
+ ]
12
+ )
13
+ ->setUsingCache (false )
14
+ ->setRiskyAllowed (true )
15
+ ->setFinder (
16
+ PhpCsFixer \Finder::create ()
17
+ ->in (__DIR__ .'/src ' )
18
+ ->append ([__FILE__ ])
19
+ );
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ before_install:
24
24
before_script :
25
25
- composer install --prefer-source
26
26
- vendor/bin/parallel-lint --exclude vendor .
27
- - vendor/bin/php-cs-fixer fix --dry-run --diff --rules=@PSR2 .
27
+ - vendor/bin/php-cs-fixer fix --dry-run --diff .
28
28
- phpenv config-add ./xdebug.ini
29
29
30
30
after_script :
You can’t perform that action at this time.
0 commit comments