-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.php-cs-fixer.php
35 lines (34 loc) · 1.4 KB
/
.php-cs-fixer.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
29
30
31
32
33
34
35
<?php
return (new PhpCsFixer\Config())
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'ordered_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_construct' => true,
'php_unit_strict' => true,
'implode_call' => true,
'phpdoc_add_missing_param_annotation' => true,
'concat_space' => ['spacing' => 'one'],
'blank_line_before_statement' => false,
'phpdoc_separation' => false,
'phpdoc_align' => false,
'phpdoc_summary' => false,
'single_trait_insert_per_statement' => false,
'method_chaining_indentation' => true,
'array_indentation' => true,
'binary_operator_spaces' => [
'operators' => ['=>' => 'align_single_space_minimal'],
],
])
->setIndent(' ')
->setLineEnding("\n")
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->exclude('thinkphp')
->exclude('runtime')
->in(__DIR__)
);