Skip to content

Commit 3a743ad

Browse files
committed
Set explicitly Symfony level and add more fixers
1 parent 3d5fdfd commit 3a743ad

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.php_cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
$finder = Symfony\CS\Finder::create()
55
->ignoreDotFiles(true)
66
->ignoreVCS(true)
7-
->exclude('app/Resources')
87
->exclude('app/config')
98
->exclude('app/data')
9+
->exclude('app/Resources')
1010
->exclude('var')
1111
->exclude('vendor')
1212
->exclude('web/bundles')
@@ -17,6 +17,12 @@ $finder = Symfony\CS\Finder::create()
1717
;
1818

1919
return Symfony\CS\Config::create()
20-
->fixers(['-psr0']) // Ignore Tests\ namespace prefix mismatch with tests/ directory
20+
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
21+
->fixers([
22+
'-psr0', // Ignore Tests\ namespace prefix mismatch with tests/ directory
23+
'ordered_use',
24+
'phpdoc_order',
25+
'short_array_syntax',
26+
])
2127
->finder($finder)
2228
;

0 commit comments

Comments
 (0)