Skip to content

Commit d4ac7b8

Browse files
committed
Add PHP-CS-Fixer config
1 parent 9f1caf0 commit d4ac7b8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.php_cs.dist

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in([
5+
__DIR__.'/src',
6+
__DIR__.'/tests',
7+
])
8+
;
9+
10+
return PhpCsFixer\Config::create()
11+
->setRules([
12+
'@Symfony' => true,
13+
'binary_operator_spaces' => [
14+
'align_equals' => false,
15+
'align_double_arrow' => true,
16+
],
17+
'array_syntax' => ['syntax' => 'short'],
18+
'cast_spaces' => false,
19+
'linebreak_after_opening_tag' => true,
20+
'ordered_imports' => true,
21+
'phpdoc_add_missing_param_annotation' => ['only_untyped' => false],
22+
'phpdoc_order' => true,
23+
'yoda_style' => null,
24+
])
25+
->setFinder($finder)
26+
;

0 commit comments

Comments
 (0)