1 | |||
0 ignored issues
–
show
Security
Bug
introduced
by
![]() |
|||
2 | <?php |
||
3 | $finder = \PhpCsFixer\Finder::create() |
||
4 | ->in(__DIR__) |
||
5 | ->exclude([ |
||
6 | 'vendor' |
||
7 | ]) |
||
8 | ->name('*.php') |
||
9 | ->ignoreDotFiles(true) |
||
10 | ->ignoreVCS(true); |
||
11 | return \PhpCsFixer\Config::create() |
||
12 | ->setRules([ |
||
13 | '@PSR2' => true, |
||
14 | 'array_syntax' => ['syntax' => 'short'], |
||
15 | 'ordered_imports' => ['sortAlgorithm' => 'alpha'], |
||
16 | 'no_unused_imports' => true, |
||
17 | ]) |
||
18 | ->setFinder($finder); |
||
19 |