File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ use PhpCsFixer \Config ;
4
+
3
5
$ finder = PhpCsFixer \Finder::create ()->in (__DIR__ );
4
6
5
7
$ rules = [
6
8
'@Symfony ' => true ,
7
9
'new_with_braces ' => true ,
8
- 'phpdoc_inline_tag ' => false ,
9
10
'concat_space ' => ['spacing ' => 'one ' ],
10
11
'array_syntax ' => ['syntax ' => 'short ' ],
11
12
'yoda_style ' => false ,
31
32
'strict_comparison ' => true ,
32
33
];
33
34
34
- return PhpCsFixer \ Config:: create ( )->setRules ($ rules )->setFinder ($ finder );
35
+ return ( new Config () )->setRules ($ rules )->setFinder ($ finder );
Original file line number Diff line number Diff line change 34
34
"scripts" : {
35
35
"test" : " vendor/bin/phpunit --configuration phpunit.xml.dist" ,
36
36
"coverage" : " vendor/bin/phpunit --configuration phpunit.xml.dist --coverage-html=tests/coverage" ,
37
- "fixer" : " vendor/bin/php-cs-fixer fix --config=.php_cs .dist -v --allow-risky=yes" ,
37
+ "fixer" : " vendor/bin/php-cs-fixer fix --config=.php-cs-fixer .dist.php -v --allow-risky=yes" ,
38
38
"linter" : [
39
- " vendor/bin/php-cs-fixer fix --config=.php_cs .dist -v --dry-run --stop-on-violation --allow-risky=yes" ,
39
+ " vendor/bin/php-cs-fixer fix --config=.php-cs-fixer .dist.php -v --dry-run --stop-on-violation --allow-risky=yes" ,
40
40
" vendor/bin/phpcpd ./ --exclude vendor --exclude tests --exclude src/Entity --exclude src/Serializer" ,
41
41
" vendor/bin/psalm --show-info=true"
42
42
],
You can’t perform that action at this time.
0 commit comments