-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs
38 lines (33 loc) · 1.46 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
<?php // PHP CS Fixer v2+.
return PhpCsFixer\Config::create()
->setRules([
// Symfony rules.
'@Symfony' => true,
'no_unused_imports' => false,
'standardize_not_equals' => false,
'blank_line_before_statement' => false,
'blank_line_after_opening_tag' => false,
'single_blank_line_before_namespace' => false,
'no_extra_consecutive_blank_lines' => false,
'phpdoc_annotation_without_dot' => false,
'hash_to_slash_comment' => false,
'no_empty_comment' => false,
'yoda_style' => false,
'braces' => [
'allow_single_line_closure' => true,
],
// Other/misc rules.
'binary_operator_spaces' => [
'align_equals' => true,
'align_double_arrow' => true,
],
'no_blank_lines_before_namespace' => true,
'no_multiline_whitespace_before_semicolons' => true,
'phpdoc_order' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_no_alias_tag' => ['var' => 'type'],
// 'psr4' => true, // Class names.
// 'declare_strict_types' => true,
// 'array_syntax' => ['syntax' => 'short'],
// Disabling these to avoid altering older PHP code.
]);