-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php_cs.dist
30 lines (27 loc) · 1018 Bytes
/
.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__.'/src/')
;
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'class_keyword_remove' => false,
'no_unreachable_default_argument_value' => false,
'braces' => [ 'allow_single_line_closure' => true, ],
'heredoc_to_nowdoc' => false,
'phpdoc_summary' => false,
'increment_style' => ['style' => 'post'],
'yoda_style' => false,
'ordered_imports' => ['sort_algorithm' => 'alpha'],
'native_function_invocation' => [ 'include' => ['@internal', '@compiler_optimized'],],
'native_constant_invocation' => true,
'no_alias_functions' => ['sets' => ['@internal', '@mbreg']],
'no_unused_imports' => true,
'declare_strict_types' => true,
'phpdoc_align' => ['align' => 'left'],
'function_declaration' => ['closure_function_spacing' => 'none'],
])
->setRiskyAllowed(true)
->setFinder($finder);