-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php_cs.dist
30 lines (28 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
<?php
$finder = PhpCsFixer\Finder::create()
->in([__DIR__.'/config', __DIR__.'/web/app/themes'])
->exclude('vendor')
;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setCacheFile(__DIR__.'/.php_cs.cache')
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => 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,
'no_unreachable_default_argument_value' => true,
'declare_strict_types' => false,
'no_unused_imports' => false
])->setFinder($finder);
;