-
Notifications
You must be signed in to change notification settings - Fork 8
/
.php-cs-fixer.php
43 lines (40 loc) · 1.14 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
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
return (new Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'declare_strict_types' => true,
'ordered_imports' => [
'imports_order' => [
'class',
'const',
'function',
],
],
'strict_comparison' => true,
'combine_consecutive_unsets' => true,
'dir_constant' => true,
'ereg_to_preg' => true,
'modernize_types_casting' => true,
'multiline_whitespace_before_semicolons' => false,
'no_php4_constructor' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
'strict_param' => true,
'phpdoc_to_comment' => false,
'phpdoc_align' => false,
'yoda_style' => false,
'increment_style' => false,
'phpdoc_no_empty_return' => false,
'single_line_throw' => false,
])
->setFinder(
Finder::create()
->in(__DIR__)
)
;