-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
42 lines (30 loc) · 1.02 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'full_opening_tag' => false,
'method_chaining_indentation' => true,
'multiline_comment_opening_closing' => true,
'no_blank_lines_after_class_opening' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_trailing_comma_in_singleline_array' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_no_empty_return' => true,
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'trailing_comma_in_multiline_array' => true,
'whitespace_after_comma_in_array' => true,
'phpdoc_line_span' => ['property' => 'single'],
'final_class' => false
])
->setFinder($finder)
;