-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
52 lines (50 loc) · 1.95 KB
/
.php-cs-fixer.dist.php
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
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__ . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR)
->exclude('var')
;
return (new PhpCsFixer\Config())
->setRules(
[
'@Symfony' => true,
'@Symfony:risky' => true,
'no_unreachable_default_argument_value' => false,
'braces' => ['allow_single_line_closure' => true],
'heredoc_to_nowdoc' => false,
'phpdoc_annotation_without_dot' => false,
'strict_comparison' => true,
'concat_space' => [
'spacing' => 'one',
],
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
],
'array_indentation' => true,
'blank_line_before_statement' => [
'statements' => [
'return',
'continue',
'exit',
'for',
'foreach',
'declare',
'if',
'return',
'throw',
'break',
],
],
'yoda_style' => true,
'no_superfluous_phpdoc_tags' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'method_chaining_indentation' => true,
'php_unit_test_case_static_method_calls' => ['call_type' => 'this'],
'single_line_throw' => false,
'mb_str_functions' => true,
'nullable_type_declaration_for_default_null_value' => true,
]
)
->setRiskyAllowed(true)
->setFinder($finder)
;