-
Notifications
You must be signed in to change notification settings - Fork 18
/
.php_cs.dist
67 lines (67 loc) · 2.54 KB
/
.php_cs.dist
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
61
62
63
64
65
66
67
<?php
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:2.15.3|configurator
* you can change this configuration by importing this file.
*/
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'blank_line_after_namespace' => true,
'class_definition' => true,
'elseif' => true,
'encoding' => true,
'full_opening_tag' => true,
'function_declaration' => true,
'indentation_type' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'method_argument_space' => true,
'no_break_comment' => true,
'no_closing_tag' => true,
'no_spaces_after_function_name' => true,
'no_trailing_whitespace' => true,
'no_trailing_whitespace_in_comment' => true,
'no_extra_blank_lines' => true,
'align_multiline_comment' => true,
'array_syntax' => ['syntax' => 'short'],
'array_indentation' => true,
//'binary_operator_spaces' => true, ('=' is binary operator..)
'blank_line_after_opening_tag' => true,
'cast_spaces' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'concat_space' => ['spacing' => 'one'],
'explicit_indirect_variable' => true,
'fully_qualified_strict_types' => true,
'function_typehint_space' => true,
'linebreak_after_opening_tag' => true,
'lowercase_static_reference' => true,
'no_blank_lines_after_class_opening' => true,
'no_empty_comment' => true,
'no_empty_phpdoc' => true,
'no_empty_statement' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_null_property_initialization' => true,
'no_trailing_comma_in_singleline_array' => true,
'no_useless_return' => true,
'no_useless_else' => true,
'no_unused_imports' => true,
'ordered_imports' => true,
'ordered_class_elements' => true,
'single_quote' => true,
'whitespace_after_comma_in_array' => true,
'backtick_to_shell_exec' => true,
'class_attributes_separation' => true,
'no_superfluous_elseif' => true,
'ternary_operator_spaces' => true,
'ternary_to_null_coalescing' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
'space_after_semicolon' => true,
])
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
)
;