-
Notifications
You must be signed in to change notification settings - Fork 45
/
.php_cs
48 lines (46 loc) · 1.61 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
43
44
45
46
47
48
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('cache')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'binary_operator_spaces' => ['default' => 'align'],
'phpdoc_align' => true,
'array_indentation' => true,
'blank_line_before_statement' => ['statements' => [
'break', 'case', 'continue', 'default', 'die', 'for', 'foreach', 'if']
],
'braces' => ['position_after_control_structures' => 'next'],
'cast_spaces' => true,
'concat_space' => ['spacing' => 'one'],
'elseif' => true,
'encoding' => true,
'full_opening_tag' => true,
'include' => true,
'indentation_type' => true,
'array_syntax' => ['syntax' => 'short'],
'lowercase_constants' => true,
'method_chaining_indentation' => true,
'method_argument_space' => true,
'no_closing_tag' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_useless_return' => true,
'no_whitespace_in_blank_line' => true,
'not_operator_with_successor_space' => true,
'single_blank_line_at_eof' => true,
'class_definition' => ['single_line' => true],
'single_quote' => true,
'trim_array_spaces' => true,
'visibility_required' => true,
'native_function_casing' => true,
'no_empty_comment' => true,
'single_line_comment_style' => true,
'phpdoc_add_missing_param_annotation' => true,
'no_spaces_after_function_name' => true,
'no_spaces_around_offset' => true,
'no_spaces_inside_parenthesis' => true,
])
->setFinder($finder)
->setIndent(" ")
;