-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs2.php
43 lines (38 loc) · 1.22 KB
/
.php_cs2.php
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
use PhpCsFixer\Config;
return Config::create()
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'ordered_imports' => true,
'combine_consecutive_unsets' => true,
'ordered_class_elements' => true,
'hash_to_slash_comment' => true,
'header_comment' => false,
// Useless blocks:
'no_closing_tag' => true,
'no_trailing_whitespace_in_comment' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_comma_in_list_call' => true,
'no_extra_consecutive_blank_lines' => [
'break',
'continue',
'extra',
'return',
'throw',
'use',
'parenthesis_brace_block',
'square_brace_block',
'curly_brace_block',
],
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
// PHPDoc:
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_separation' => true,
'phpdoc_order' => true,
'php_unit_fqcn_annotation' => true,
]);