Skip to content

Commit 43ac0f4

Browse files
add php-cs-fixer.dist.php
1 parent 162c7fb commit 43ac0f4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.php-cs-fixer.dist.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
use PhpCsFixer\Config;
4+
use PhpCsFixer\Finder;
5+
6+
$finder = Finder::create()
7+
->in(__DIR__ . '/src')
8+
->in(__DIR__ . '/tests')
9+
->name('*.php');
10+
11+
return (new Config())
12+
->setRules([
13+
'@PSR12' => true,
14+
'strict_param' => true,
15+
'array_syntax' => ['syntax' => 'short'],
16+
'no_unused_imports' => true,
17+
'no_trailing_whitespace_in_string' => true,
18+
'single_quote' => true,
19+
'ordered_imports' => ['sort_algorithm' => 'alpha']
20+
])
21+
->setFinder($finder)
22+
->setUsingCache(true);

0 commit comments

Comments
 (0)