-
Notifications
You must be signed in to change notification settings - Fork 10
/
.php-cs-fixer.php
50 lines (48 loc) · 2.08 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
$finder = (new PhpCsFixer\Finder())
->in(__DIR__)
->exclude('vendor')
;
return (new PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'concat_space' => ['spacing' => 'one'],
'ordered_imports' => true,
'single_blank_line_at_eof' => true,
'random_api_migration' => true,
'no_unused_imports' => true,
'phpdoc_var_without_name' => true,
'return_type_declaration' => true,
'trailing_comma_in_multiline' => true,
'no_whitespace_in_blank_line' => true,
'single_quote' => true,
'new_with_braces' => true,
'blank_line_before_statement' => true,
'phpdoc_align' => ['align' => 'vertical'],
'phpdoc_separation' => true,
'phpdoc_summary' => false,
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'no_php4_constructor' => true,
'no_unreachable_default_argument_value' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'php_unit_strict' => true,
'phpdoc_order' => true,
'strict_comparison' => true,
'strict_param' => true,
'binary_operator_spaces' => [
'operators' => [
'=' => 'align',
'=>' => 'align',
],
],
'native_function_invocation' => [
'include' => ['@internal'],
],
'blank_line_between_import_groups' => false,
])
->setRiskyAllowed(true)
->setFinder($finder)
;