Skip to content

Commit 37fc478

Browse files
committed
upgrade php-cs-fixer to v2.12
1 parent dbd0a4b commit 37fc478

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed
Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
<?php
22

3-
return Symfony\CS\Config::create()
4-
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
3+
return PhpCsFixer\Config::create()
54
->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__)
1816
);

modules/swagger-codegen/src/main/resources/php/composer.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"require-dev": {
2929
"phpunit/phpunit": "^4.8",
3030
"squizlabs/php_codesniffer": "~2.6",
31-
"friendsofphp/php-cs-fixer": "~1.12"
31+
"friendsofphp/php-cs-fixer": "~2.12"
3232
},
3333
"autoload": {
3434
"psr-4": { "{{escapedInvokerPackage}}\\" : "{{srcBasePath}}/" }

0 commit comments

Comments
 (0)