-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.php_cs.php
42 lines (40 loc) · 1.04 KB
/
.php_cs.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
36
37
38
39
40
41
42
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'CL/remove_type_hint' => true,
'return_type_declaration' => [
'space_before' => 'none',
],
'no_unused_imports' => true,
'single_line_after_imports' => true,
'class_attributes_separation' => [
'elements' => [
'const',
'method',
'property'
]
],
'yoda_style' => false,
'align_multiline_comment' => [
'comment_type' => 'all_multiline',
],
'self_accessor' => true,
'array_syntax' => [
'syntax' => 'short'
],
'concat_space' => [
'spacing' => 'one'
],
'declare_strict_types' => false,
'header_comment' => [
'header' => <<<EOH
This file has been auto generated by Jane,
Do no edit it directly.
EOH
,
],
])
->registerCustomFixers([
new \Tools\Fixer\RemoveTypeHintFixer()
]);