-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs.dist
45 lines (43 loc) · 2.14 KB
/
.php_cs.dist
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
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return Config::create()
->setUsingCache(true)
->setRiskyAllowed(true)
->setRules(
[
'@PSR2' => true,
'psr0' => true,
'linebreak_after_opening_tag' => true,
'no_multiline_whitespace_before_semicolons' => true,
'no_php4_constructor' => true,
'no_useless_else' => true,
'ordered_imports' => true,
'php_unit_construct' => true,
'phpdoc_order' => true,
'pow_to_exponentiation' => true,
'random_api_migration' => true,
'align_multiline_comment' => true,
'phpdoc_types_order' => true,
'no_null_property_initialization' => true,
'no_unneeded_final_method' => true,
'no_unneeded_curly_braces' => true,
'no_superfluous_elseif' => true,
'trailing_comma_in_multiline_array' => true,
'no_unused_imports' => true,
'include' => true,
'array_syntax' => [
'syntax' => 'short',
],
]
)
->setFinder(
(Finder::create())->in(
[
__DIR__ . '/src/main',
__DIR__ . '/src/test',
]
)
->files()
->name('*.php')
);