Skip to content

Commit a88fd70

Browse files
Run PHP-CS-Fixer and update configuration
1 parent 81d4b68 commit a88fd70

2 files changed

Lines changed: 16 additions & 17 deletions

File tree

.php-cs-fixer.dist.php

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,15 @@
6161
'yield',
6262
],
6363
],
64-
'braces' => [
65-
'position_after_anonymous_constructs' => 'next',
64+
'single_space_around_construct' => true,
65+
'control_structure_braces' => true,
66+
'control_structure_continuation_position' => true,
67+
'declare_parentheses' => true,
68+
'no_multiple_statements_per_line' => true,
69+
'braces_position' => [
70+
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
6671
],
72+
'statement_indentation' => true,
6773
'cast_spaces' => true,
6874
'class_attributes_separation' => [
6975
'elements' => [
@@ -77,7 +83,7 @@
7783
'combine_consecutive_issets' => true,
7884
'combine_consecutive_unsets' => true,
7985
'combine_nested_dirname' => true,
80-
'compact_nullable_typehint' => true,
86+
'compact_nullable_type_declaration' => true,
8187
'concat_space' => ['spacing' => 'one'],
8288
'constant_case' => true,
8389
'declare_equal_normalize' => ['space' => 'none'],
@@ -126,12 +132,12 @@
126132
'native_constant_invocation' => false,
127133
'native_function_casing' => false,
128134
'native_function_invocation' => false,
129-
'native_function_type_declaration_casing' => true,
135+
'native_type_declaration_casing' => true,
130136
'no_alias_functions' => true,
131137
'no_alias_language_construct_call' => true,
132138
'no_blank_lines_after_class_opening' => true,
133139
'no_blank_lines_after_phpdoc' => true,
134-
'no_blank_lines_before_namespace' => true,
140+
'blank_lines_before_namespace' => true,
135141
'no_break_comment' => true,
136142
'no_closing_tag' => true,
137143
'no_empty_comment' => true,
@@ -146,18 +152,17 @@
146152
'no_singleline_whitespace_before_semicolons' => true,
147153
'no_spaces_after_function_name' => true,
148154
'no_spaces_around_offset' => true,
149-
'no_spaces_inside_parenthesis' => true,
155+
'spaces_inside_parentheses' => true,
150156
'no_superfluous_elseif' => true,
151157
'no_superfluous_phpdoc_tags' => [
152158
'allow_mixed' => true,
153159
],
154-
'no_trailing_comma_in_list_call' => true,
155-
'no_trailing_comma_in_singleline_array' => true,
160+
'no_trailing_comma_in_singleline' => true,
156161
'no_trailing_whitespace' => true,
157162
'no_trailing_whitespace_in_comment' => true,
158163
'no_trailing_whitespace_in_string' => true,
159164
'no_unneeded_control_parentheses' => true,
160-
'no_unneeded_curly_braces' => true,
165+
'no_unneeded_braces' => true,
161166
'no_unneeded_final_method' => true,
162167
'no_unreachable_default_argument_value' => true,
163168
'no_unset_cast' => true,
@@ -270,13 +275,7 @@
270275
'trailing_comma_in_multiline' => true,
271276
'trim_array_spaces' => true,
272277
'unary_operator_spaces' => true,
273-
'visibility_required' => [
274-
'elements' => [
275-
'const',
276-
'method',
277-
'property',
278-
],
279-
],
278+
'modifier_keywords' => true,
280279
'void_return' => true,
281280
'whitespace_after_comma_in_array' => true,
282281
'yoda_style' => [

src/Expressions/Operators/ComparisonBinaryOperator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function __construct(AnyType $left, AnyType $right)
5151
*/
5252
protected function shouldInsertParentheses(AnyType $expression): bool
5353
{
54-
if ($expression instanceof ComparisonBinaryOperator) {
54+
if ($expression instanceof self) {
5555
return false;
5656
}
5757

0 commit comments

Comments
 (0)