-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
39 lines (37 loc) · 1.22 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
<?php
$finder = (new PhpCsFixer\Finder())
->in('src')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PHP81Migration' => true,
'@PHP80Migration:risky' => true,
'@PHPUnit84Migration:risky' => true,
'@PSR1' => true,
'@PSR12' => true,
'@PhpCsFixer' => true,
'@Symfony' => true,
'ternary_to_elvis_operator' => true,
'set_type_to_cast' => true,
'self_accessor' => true,
'psr_autoloading' => true,
'php_unit_test_annotation' => ['style' => 'annotation'],
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_construct' => true,
'no_useless_sprintf' => true,
'no_homoglyph_names' => true,
'native_function_invocation' => true,
'native_constant_invocation' => true,
'modernize_types_casting' => true,
'logical_operators' => true,
'is_null' => true,
'function_to_constant' => true,
'fopen_flag_order' => true,
'error_suppression' => true,
'ereg_to_preg' => true,
'dir_constant' => true,
])
->setFinder($finder)
->setCacheFile('.php-cs-fixer.cache') // forward compatibility with 3.x line
;