-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php-cs-fixer.dist.php
59 lines (56 loc) · 1.38 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
53
54
55
56
57
58
59
<?php
use PhpCsFixer\Finder;
use PhpCsFixer\Config;
$finder = Finder::create()
->in([
__DIR__ . '/lib',
__DIR__ . '/tests',
])
;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@PSR12' => true,
'void_return' => true,
'binary_operator_spaces' => [
'operators' => [
'=>' => null
],
],
'blank_line_before_statement' => [
'statements' => [
'break',
'continue',
'declare',
'default',
'do',
'exit',
'for',
'foreach',
'goto',
'if',
'include',
'include_once',
'require',
'require_once',
'return',
'switch',
'throw',
'try',
'while',
'yield',
],
],
'concat_space' => false,
'no_unused_imports' => true,
'php_unit_set_up_tear_down_visibility' => true,
'phpdoc_align' => [],
'phpdoc_indent' => false,
'phpdoc_separation' => true,
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true
],
'fully_qualified_strict_types' => true,
])
->setFinder($finder)
;