-
Notifications
You must be signed in to change notification settings - Fork 28
/
.php-cs-fixer.php
50 lines (40 loc) · 1.21 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
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__.'/src')
->in(__DIR__.'/tests')
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PHP80Migration:risky' => true,
'@PHP81Migration' => true,
'@PhpCsFixer:risky' => true,
//'@PhpCsFixer' => true,
// included in @PhpCsFixer:risky
'@Symfony:risky' => true,
//'@Symfony' => true,
// included in @Symfony:risky
'@PSR12:risky' => true,
//'@PSR12' => true,
'@DoctrineAnnotation' => true,
'@PHPUnit84Migration:risky' => true,
'strict_param' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'operators' => [
'=>' => 'align',
'=' => 'align'
]
],
'simplified_null_return' => true,
'simplified_if_return' => true,
'regular_callable_call' => true,
'phpdoc_to_return_type' => true,
'phpdoc_to_property_type' => true,
'phpdoc_to_param_type' => true,
'phpdoc_tag_casing' => true,
])
//->setFinder($finder)
->setIndent(" ")
->setLineEnding("\n")
->setFinder($finder)
;