Skip to content

Commit ef5bf58

Browse files
Merge branch '10.0'
2 parents c9caa88 + a2c8315 commit ef5bf58

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.phive/phars.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^3.0" installed="3.15.1" location="./tools/php-cs-fixer" copy="true"/>
3+
<phar name="php-cs-fixer" version="^3.0" installed="3.16.0" location="./tools/php-cs-fixer" copy="true"/>
44
<phar name="psalm" version="^5.0" installed="5.9.0" location="./tools/psalm" copy="true"/>
55
<phar name="composer" version="^2.0.3" installed="2.5.5" location="./tools/composer" copy="true"/>
66
</phive>

.php-cs-fixer.dist.php

+14-5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
'blank_line_before_statement' => [
3434
'statements' => [
3535
'break',
36+
'case',
3637
'continue',
3738
'declare',
3839
'default',
@@ -44,6 +45,7 @@
4445
'if',
4546
'include',
4647
'include_once',
48+
'phpdoc',
4749
'require',
4850
'require_once',
4951
'return',
@@ -52,15 +54,13 @@
5254
'try',
5355
'while',
5456
'yield',
57+
'yield_from',
5558
],
5659
],
57-
'braces' => [
58-
'position_after_anonymous_constructs' => 'next',
59-
],
6060
'cast_spaces' => true,
6161
'class_attributes_separation' => [
6262
'elements' => [
63-
'const' => 'one',
63+
'const' => 'none',
6464
'method' => 'one',
6565
'property' => 'only_if_meta'
6666
]
@@ -73,7 +73,14 @@
7373
'compact_nullable_typehint' => true,
7474
'concat_space' => ['spacing' => 'one'],
7575
'constant_case' => true,
76+
'control_structure_braces' => true,
77+
'control_structure_continuation_position' => true,
78+
'curly_braces_position' => [
79+
'anonymous_functions_opening_brace' => 'next_line_unless_newline_at_signature_end',
80+
'anonymous_classes_opening_brace' => 'next_line_unless_newline_at_signature_end',
81+
],
7682
'declare_equal_normalize' => ['space' => 'none'],
83+
'declare_parentheses' => true,
7784
'declare_strict_types' => true,
7885
'dir_constant' => true,
7986
'echo_tag_syntax' => true,
@@ -147,6 +154,7 @@
147154
'no_leading_import_slash' => true,
148155
'no_leading_namespace_whitespace' => true,
149156
'no_mixed_echo_print' => ['use' => 'print'],
157+
'no_multiple_statements_per_line' => true,
150158
'no_multiline_whitespace_around_double_arrow' => true,
151159
'no_null_property_initialization' => true,
152160
'no_php4_constructor' => true,
@@ -272,11 +280,12 @@
272280
'single_import_per_statement' => true,
273281
'single_line_after_imports' => true,
274282
'single_quote' => true,
275-
'single_space_after_construct' => true,
283+
'single_space_around_construct' => true,
276284
'single_trait_insert_per_statement' => true,
277285
'space_after_semicolon' => true,
278286
'standardize_increment' => true,
279287
'standardize_not_equals' => true,
288+
'statement_indentation' => true,
280289
'static_lambda' => true,
281290
'strict_param' => true,
282291
'string_line_ending' => true,

tools/php-cs-fixer

6.69 KB
Binary file not shown.

0 commit comments

Comments
 (0)