-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.php_cs
63 lines (60 loc) · 2.17 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
declare(strict_types=1);
$finder = PhpCsFixer\Finder::create()
->in(['lib', 'test']);
return PhpCsFixer\Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'align_multiline_comment' => true,
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'date_time_immutable' => true,
'declare_strict_types' => true,
'function_to_constant' => true,
'header_comment' => ['header' => ''],
'mb_str_functions' => true,
'method_chaining_indentation' => true,
'multiline_whitespace_before_semicolons' => true,
'native_constant_invocation' => true,
'native_function_invocation' => true,
'no_alternative_syntax' => true,
'no_homoglyph_names' => true,
'no_null_property_initialization' => true,
'no_superfluous_elseif' => true,
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
'no_useless_else' => true,
'nullable_type_declaration_for_default_null_value' => [
'use_nullable_type_declaration' => true,
],
'ordered_imports' => true,
'ordered_interfaces' => true,
'phpdoc_line_span' => [
'const' => 'single',
'property' => 'single',
],
'phpdoc_no_empty_return' => true,
'php_unit_expectation' => true,
'php_unit_internal_class' => true,
'php_unit_mock' => true,
'php_unit_mock_short_will_return' => true,
'php_unit_namespaced' => true,
'php_unit_no_expectation_annotation' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_test_case_static_method_calls' => [
'call_type' => 'this',
],
'phpdoc_align' => false,
'phpdoc_order' => true,
'phpdoc_trim_consecutive_blank_line_separation' => true,
'simple_to_complex_string_variable' => true,
'single_line_throw' => false,
'static_lambda' => true,
'void_return' => true,
'yoda_style' => false,
])
->setFinder($finder);