-
Notifications
You must be signed in to change notification settings - Fork 20
/
.php-cs-fixer.dist.php
28 lines (25 loc) · 883 Bytes
/
.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
<?php
$finder = PhpCsFixer\Finder::create()
->exclude('fixtures')
->in(['src', 'tests']);
return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'@PHP80Migration' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
'linebreak_after_opening_tag' => true,
'native_function_invocation' => ['scope' => 'all', 'include' => ['@all']],
'native_constant_invocation' => true,
'no_null_property_initialization' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'phpdoc_order' => true,
'strict_comparison' => true,
'combine_nested_dirname' => true,
])
->setRiskyAllowed(true)
->setFinder($finder)
;