-
Notifications
You must be signed in to change notification settings - Fork 20
/
.php_cs.dist
33 lines (31 loc) · 1.24 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
<?php
$finder = PhpCsFixer\Finder::create()
->in([__DIR__.'/src', __DIR__.'/tests'])
->exclude('var')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/.php_cs.cache')
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'declare_strict_types' => true,
'braces' => ['allow_single_line_closure' => true],
'native_constant_invocation' => true,
'native_function_invocation' => [
'include' => ['@compiler_optimized'],
'scope' => 'namespaced',
],
'phpdoc_summary' => false,
'no_superfluous_phpdoc_tags' => true,
'general_phpdoc_annotation_remove' => ['author'],
'no_unreachable_default_argument_value' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'strict_comparison' => true,
'strict_param' => true,
'void_return' => true,
])
->setFinder($finder)
;