File tree Expand file tree Collapse file tree 2 files changed +13
-15
lines changed
modules/swagger-codegen/src/main/resources/php Expand file tree Collapse file tree 2 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- return Symfony \CS \Config::create ()
4
- ->level (Symfony \CS \FixerInterface::PSR2_LEVEL )
3
+ return PhpCsFixer \Config::create ()
5
4
->setUsingCache (true )
6
- ->fixers (
7
- [
8
- 'ordered_use ' ,
9
- 'phpdoc_order ' ,
10
- 'short_array_syntax ' ,
11
- 'strict ' ,
12
- 'strict_param '
13
- ]
14
- )
15
- ->finder (
16
- Symfony \CS \Finder \DefaultFinder::create ()
17
- ->in (__DIR__ )
5
+ ->setRules ([
6
+ '@PSR2 ' => true ,
7
+ 'ordered_imports ' => true ,
8
+ 'phpdoc_order ' => true ,
9
+ 'array_syntax ' => [ 'syntax ' => 'short ' ],
10
+ 'strict_comparison ' => true ,
11
+ 'strict_param ' => true
12
+ ])
13
+ ->setFinder (
14
+ PhpCsFixer \Finder::create ()
15
+ ->in (__DIR__ )
18
16
);
Original file line number Diff line number Diff line change 28
28
"require-dev": {
29
29
" phpunit/phpunit" : " ^4.8" ,
30
30
" squizlabs/php_codesniffer" : " ~2.6" ,
31
- " friendsofphp/php-cs-fixer" : " ~1 .12"
31
+ " friendsofphp/php-cs-fixer" : " ~2 .12"
32
32
} ,
33
33
"autoload": {
34
34
" psr-4" : { " {{escapedInvokerPackage}}\\ " : " {{srcBasePath}}/" }
You can’t perform that action at this time.
0 commit comments