-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.php_cs.dist
54 lines (52 loc) · 1.97 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
<?php
$finder = \PhpCsFixer\Finder::create()
->in(__DIR__);
return \PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'@PhpCsFixer' => true,
'@PHP71Migration' => true,
'concat_space' => ['spacing' => 'one'],
'phpdoc_summary' => false,
'phpdoc_align' => false,
'no_short_echo_tag' => true,
'no_useless_else' => true,
'is_null' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_null_property_initialization' => true,
'list_syntax' => ['syntax' => 'short'],
'array_syntax' => ['syntax' => 'short'],
'php_unit_strict' => true,
'strict_comparison' => true,
'strict_param' => true,
'declare_strict_types' => true,
'yoda_style' => false,
'ordered_class_elements' => true,
'date_time_immutable' => true,
'no_unused_imports' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'no_trailing_comma_in_singleline_array' => true,
'trailing_comma_in_multiline_array' => true,
'whitespace_after_comma_in_array' => true,
'native_function_invocation' => [
'include' => ['@compiler_optimized']
],
'method_argument_space' => [
'on_multiline' => 'ensure_fully_multiline'
],
'fully_qualified_strict_types' => true,
'no_unreachable_default_argument_value' => true,
'new_with_braces' => true,
'no_empty_statement' => true,
'no_extra_consecutive_blank_lines' => true,
'no_leading_import_slash' => true,
'no_leading_namespace_whitespace' => true,
'no_multiline_whitespace_around_double_arrow' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_whitespace_in_blank_line' => true,
'object_operator_without_whitespace' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
])
->setFinder($finder)
;