-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.php
60 lines (59 loc) · 1.67 KB
/
.php-cs-fixer.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
return (new PhpCsFixer\Config())
->setRules(array(
'@PSR2' => true,
'align_multiline_comment' => array('comment_type' => 'all_multiline'),
'array_indentation' => true,
'array_syntax' => array('syntax' => 'long'),
'blank_line_after_opening_tag' => false,
'blank_line_before_statement' => true,
'braces' => array(
'allow_single_line_closure' => true,
'position_after_functions_and_oop_constructs' => 'same'
),
'concat_space' => array(
'spacing' => 'one'
),
'ordered_class_elements' => array(
'sort_algorithm' => 'alpha'
),
'method_argument_space' => array(
'on_multiline' => 'ensure_fully_multiline',
'after_heredoc' => true
),
'multiline_comment_opening_closing' => true,
'no_blank_lines_after_class_opening' => false,
'no_blank_lines_after_phpdoc' => true,
'no_closing_tag' => true,
'no_extra_blank_lines' => array(
'tokens' => array(
'curly_brace_block',
'extra',
'parenthesis_brace_block',
'square_brace_block',
'throw',
'use',
)
),
'no_spaces_after_function_name' => true,
'no_trailing_comma_in_list_call' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_trailing_whitespace' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_align' => array(
'align' => 'left'
),
'phpdoc_indent' => true,
'phpdoc_order' => true,
'phpdoc_trim' => true,
'return_type_declaration' => true,
'single_blank_line_before_namespace' => true,
'single_blank_line_at_eof' => true,
'single_line_after_imports' => true,
'single_quote' => true
))
->setIndent("\t")
->setLineEnding("\n")
;