Skip to content

Commit 63c80c1

Browse files
committed
add php cs
1 parent 3b4cfae commit 63c80c1

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.php_cs

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__)
5+
->ignoreDotFiles(true)
6+
->ignoreVCS(true)
7+
->exclude(array('build', 'vendor'))
8+
->files()
9+
->name('*.php')
10+
;
11+
return PhpCsFixer\Config::create()
12+
->setUsingCache(true)
13+
->setRiskyAllowed(true)
14+
->setFinder($finder)
15+
->setRules(array(
16+
'@Symfony' => true,
17+
'@Symfony:risky' => true,
18+
'array_syntax' => array('syntax' => 'short'),
19+
'binary_operator_spaces' => array(
20+
'align_double_arrow' => false,
21+
),
22+
'combine_consecutive_unsets' => true,
23+
'no_useless_else' => true,
24+
'no_useless_return' => true,
25+
'ordered_imports' => true,
26+
'php_unit_strict' => true,
27+
'phpdoc_summary' => false,
28+
'strict_comparison' => true,
29+
))
30+
;

0 commit comments

Comments
 (0)