-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
40 lines (38 loc) · 1.25 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
<?php
$finder = (new PhpCsFixer\Finder())
->in('src')
;
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@PHP82Migration' => true,
'@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
;