-
Notifications
You must be signed in to change notification settings - Fork 33
/
.php_cs.dist
43 lines (41 loc) · 1.3 KB
/
.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
37
38
39
40
41
42
43
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'@Symfony:risky' => true,
'no_unneeded_final_method' => false,
'dir_constant' => true,
'concat_space' => ['spacing' => 'none'],
'modernize_types_casting' => true,
'no_short_echo_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'native_function_invocation' => ['include' => ['@compiler_optimized']],
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align_single_space',
],
],
'concat_space' => ['spacing' => 'one'],
'semicolon_after_instruction' => true,
'strict_comparison' => true,
'strict_param' => true,
'yoda_style' => [
'always_move_variable' => true,
'equal' => true,
'identical' => true,
'less_and_greater' => true,
],
])
->setFinder($finder)
->setCacheFile(__DIR__.'/.php_cs.cache')
;