Skip to content

Commit 7209364

Browse files
committed
1.3.0
1 parent e9ece25 commit 7209364

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Config.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,19 @@ public static function create()
2424
// Stricter than rulesets:
2525
'braces' => true,
2626
'class_attributes_separation' => true,
27+
'function_to_constant' => [
28+
'functions' => [
29+
'get_called_class',
30+
'get_class',
31+
'php_sapi_name',
32+
'phpversion',
33+
'pi',
34+
],
35+
],
2736
'single_class_element_per_statement' => true,
37+
'single_quote' => [
38+
'strings_containing_single_quote_chars' => true,
39+
],
2840

2941
// Stricter than rulesets and defaults:
3042
'method_argument_space' => ['ensure_fully_multiline' => true],
@@ -88,22 +100,27 @@ public static function create()
88100
],
89101

90102
// Not in rulesets:
103+
'array_indentation' => true,
91104
'array_syntax' => ['syntax' => 'short'],
92105
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
93106
'backtick_to_shell_exec' => true,
94107
'combine_consecutive_issets' => true,
95108
'combine_consecutive_unsets' => true,
109+
'comment_to_phpdoc' => true,
96110
'compact_nullable_typehint' => true,
111+
'date_time_immutable' => true,
97112
'escape_implicit_backslashes' => true,
98113
'explicit_indirect_variable' => true,
99114
'explicit_string_variable' => true,
100115
'final_internal_class' => true,
116+
'fully_qualified_strict_types' => true,
101117
'linebreak_after_opening_tag' => true,
102118
'list_syntax' => ['syntax' => 'short'],
103119
'mb_str_functions' => true,
104120
'method_chaining_indentation' => true,
105121
'multiline_comment_opening_closing' => true,
106122
'multiline_whitespace_before_semicolons' => true,
123+
'no_alternative_syntax' => true,
107124
'no_null_property_initialization' => true,
108125
'no_php4_constructor' => true,
109126
'no_superfluous_elseif' => true,
@@ -117,6 +134,8 @@ public static function create()
117134
'function',
118135
],
119136
],
137+
'php_unit_ordered_covers' => true,
138+
'php_unit_set_up_tear_down_visibility' => true,
120139
'php_unit_strict' => true,
121140
'phpdoc_add_missing_param_annotation' => true,
122141
'phpdoc_order' => true,
@@ -125,6 +144,7 @@ public static function create()
125144
'static_lambda' => true,
126145
'strict_comparison' => true,
127146
'strict_param' => true,
147+
'string_line_ending' => true,
128148

129149
// Disabled ruleset configurations:
130150
'phpdoc_align' => false,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "twinscom/php-cs-fixer-config",
33
"require": {
44
"php": ">=7.1",
5-
"friendsofphp/php-cs-fixer": "^2.10"
5+
"friendsofphp/php-cs-fixer": "^2.11"
66
},
77
"autoload": {
88
"psr-4": {

0 commit comments

Comments
 (0)