-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs
39 lines (36 loc) · 1.41 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
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
// Overrides for rules included in PhpCsFixer rule sets
'concat_space' => ['spacing' => 'one'],
'method_chaining_indentation' => false,
'multiline_whitespace_before_semicolons' => false,
'native_function_invocation' => false,
'no_superfluous_phpdoc_tags' => false,
'php_unit_internal_class' => false,
'php_unit_set_up_tear_down_visibility' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'php_unit_test_class_requires_covers' => false,
'phpdoc_align' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
'single_line_comment_style' => false,
'visibility_required' => ['elements' => ['property', 'method', 'const']],
'yoda_style' => false,
// Additional rules
'date_time_immutable' => true,
'declare_strict_types' => true,
'list_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'static_lambda' => true,
'ternary_to_null_coalescing' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->exclude(['ezpublish_legacy'])
->in('src')
->append(['app/AppKernel.php'])
)
;