-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.php_cs.dist
36 lines (32 loc) · 874 Bytes
/
.php_cs.dist
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
31
32
33
34
35
36
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude(['.docker', 'bin', 'var', 'vendor'])
;
$rules = [
'@Symfony' => true,
'@Symfony:risky' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'logical_operators' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_useless_return' => true,
'ordered_imports' => true,
'return_assignment' => true,
'native_function_invocation' => true,
'native_constant_invocation' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
];
$phpCsFixer = PhpCsFixer\Config::create()
->setRules($rules)
->setRiskyAllowed(true)
->setFinder($finder)
;
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
])
->setFinder($finder)
;