-
Notifications
You must be signed in to change notification settings - Fork 3
/
.php_cs.dist
54 lines (52 loc) · 2.01 KB
/
.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
declare(strict_types=1);
return PhpCsFixer\Config::create()
->setRules([
'@PSR2' => true,
'psr4' => true,
'strict_param' => true,
'declare_strict_types' => true,
'fully_qualified_strict_types' => true,
'single_quote' => true,
'linebreak_after_opening_tag' => true,
'logical_operators' => true,
'lowercase_cast' => true,
'short_scalar_cast' => true,
'no_whitespace_in_blank_line' => true,
'no_unused_imports' => true,
'combine_consecutive_issets' => true,
'not_operator_with_successor_space' => true,
'combine_consecutive_unsets' => true,
'native_function_casing' => true,
'native_function_invocation' => true,
'no_alias_functions' => true,
'trailing_comma_in_multiline_array' => true,
'mb_str_functions' => true,
'ternary_to_null_coalescing' => true,
'heredoc_indentation' => true,
'random_api_migration' => true,
'void_return' => true,
'static_lambda' => true,
'strict_comparison' => true,
'ordered_imports' => [
'sort_algorithm' => 'alpha',
],
'return_type_declaration' => [
'space_before' => 'none',
],
'class_attributes_separation' => [
'elements' => [
'method',
'property',
],
],
'binary_operator_spaces' => [
'default' => 'align_single_space_minimal',
],
'array_syntax' => [
'syntax' => 'short',
],
'concat_space' => [
'spacing' => 'none',
],
]);