-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
62 lines (59 loc) · 2.56 KB
/
.php_cs
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
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$header = <<<'EOF'
core42
@package core42
@link https://github.com/kiwi-suite/core42
@copyright Copyright (c) 2010 - 2017 kiwi suite (https://www.kiwi-suite.com)
@license MIT License
@author kiwi suite <dev@kiwi-suite.com>
EOF;
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules([
'@PSR2' => true,
'header_comment' => ['header' => $header],
'combine_consecutive_unsets' => true,
'concat_space' => ['spacing' => 'one'],
'hash_to_slash_comment' => true,
'is_null' => ['use_yoda_style' => false],
'linebreak_after_opening_tag' => true,
'lowercase_cast' => true,
'mb_str_functions' => true,
'modernize_types_casting' => true,
'native_function_casing' => true,
'native_function_invocation' => true,
'new_with_braces' => true,
'no_alias_functions' => true,
'no_blank_lines_after_phpdoc' => true,
'no_empty_comment' => false,
'no_empty_phpdoc' => false,
'no_empty_statement' => true,
'no_leading_namespace_whitespace' => true,
'no_mixed_echo_print' => true,
'no_unreachable_default_argument_value' => true,
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_useless_return' => true,
'no_whitespace_in_blank_line' => true,
'normalize_index_brace' => true,
'object_operator_without_whitespace'=> true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_annotation_without_dot' => true,
'phpdoc_no_alias_tag' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_scalar' => true,
'phpdoc_summary' => false,
'pow_to_exponentiation' => true,
'psr4' => true,
'random_api_migration' => true,
'short_scalar_cast' => true,
'standardize_not_equals' => true,
'trailing_comma_in_multiline_array' => true,
])
->setFinder(
PhpCsFixer\Finder::create()
->in('src')
->in('config')
)
;