-
Notifications
You must be signed in to change notification settings - Fork 7
/
.php-cs-fixer.php
71 lines (58 loc) · 2.19 KB
/
.php-cs-fixer.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return
(new Config())
->setCacheFile(__DIR__ . '/var/.php_cs')
->setFinder(
Finder::create()
->in([
__DIR__ . '/bin',
__DIR__ . '/config',
__DIR__ . '/src',
__DIR__ . '/tests',
])
->exclude([
'extensions/file',
'extensions/image',
'extensions/markdown',
'overrides',
'_support/_generated',
])
->append([
__DIR__ . '/public/index.php',
__FILE__,
])
)
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'@PSR12:risky' => true,
'@DoctrineAnnotation' => true,
'@PHP80Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => true,
'ordered_imports' => ['imports_order' => ['class', 'function', 'const']],
'concat_space' => ['spacing' => 'one'],
'cast_spaces' => ['space' => 'none'],
'binary_operator_spaces' => false,
'phpdoc_to_comment' => false,
'phpdoc_separation' => false,
'phpdoc_types_order' => ['null_adjustment' => 'always_last'],
'phpdoc_align' => false,
'operator_linebreak' => false,
'global_namespace_import' => true,
'blank_line_before_statement' => false,
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'fopen_flags' => ['b_mode' => true],
'php_unit_strict' => false,
'php_unit_test_class_requires_covers' => false,
'php_unit_test_case_static_method_calls' => ['call_type' => 'self'],
'yoda_style' => false,
'static_lambda' => true,
'echo_tag_syntax' => ['format' => 'short'],
'no_alternative_syntax' => false,
]);