forked from hozana/openchurch
/
.php_cs
30 lines (28 loc) · 878 Bytes
/
.php_cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('.dev')
->exclude('bin')
->exclude('data')
->exclude('node_modules')
->exclude('tools')
->exclude('var')
->exclude('vendor')
->exclude('web')
->in(__DIR__);
return PhpCsFixer\Config::create()
->setRules(array(
'@Symfony' => true,
'@Symfony:risky' => true,
'array_syntax' => array('syntax' => 'short'),
'braces' => array('allow_single_line_closure' => true),
'heredoc_to_nowdoc' => false,
'no_unreachable_default_argument_value' => false,
'ordered_imports' => true,
'phpdoc_annotation_without_dot' => false,
'yoda_style' => null,
'no_superfluous_phpdoc_tags' => true,
'native_constant_invocation' => false,
))
->setRiskyAllowed(true)
->setUsingCache(false)
->setFinder($finder);