-
Notifications
You must be signed in to change notification settings - Fork 51
/
.php_cs.dist
44 lines (42 loc) · 1.67 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
44
<?php
$finder = PhpCsFixer\Finder::create()->in(__DIR__);
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRules([
'@PSR2' => true,
'@Symfony' => true,
'@DoctrineAnnotation' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'phpdoc_order' => true,
'ternary_to_null_coalescing' => true,
'phpdoc_summary' => false,
'phpdoc_to_comment' => false,
'phpdoc_types_order' => true,
'return_assignment' => true,
'phpdoc_align' => true,
'yoda_style' => false,
'phpdoc_var_without_name' => false,
'compact_nullable_typehint' => true,
'no_multiline_whitespace_before_semicolons' => true,
'concat_space' => [
'spacing' => 'one',
],
'array_syntax' => [
'syntax' => 'short',
],
'visibility_required' => [
'property',
'method',
],
'binary_operator_spaces' => [
'operators' => [
'=>' => 'single_space',
'=' => 'single_space',
],
],
])
->setFinder($finder)
;