-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs.dist
38 lines (36 loc) · 1.12 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
<?php
return PhpCsFixer\Config::create()
->setRules([
'@Symfony' => true,
'method_argument_space' => ['ensure_fully_multiline' => true],
'array_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
'no_null_property_initialization' => true,
'ternary_to_null_coalescing' => true,
'no_useless_else' => true,
'no_useless_return' => true,
// Risky Rules
'pow_to_exponentiation' => true,
'psr4' => true,
'random_api_migration' => true,
'self_accessor' => true,
'silenced_deprecation_error' => true,
'no_homoglyph_names' => true,
'no_alias_functions' => true,
'modernize_types_casting' => true,
'is_null' => true,
'dir_constant' => true,
'function_to_constant' => true,
'no_superfluous_phpdoc_tags' => false,
])
->setRiskyAllowed(true)
->setFinder(
PhpCsFixer\Finder::create()
->in([
__DIR__.'/src',
__DIR__.'/tests',
])
->append([
__FILE__,
])
);