Skip to content

Commit 7c13249

Browse files
committed
Add inline_constructor_arguments option to class_definition
1 parent 96b4198 commit 7c13249

File tree

3 files changed

+33
-12
lines changed

3 files changed

+33
-12
lines changed

.php-cs-fixer.dist.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,17 @@
4141
$overrides = [
4242
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
4343
'blank_line_between_import_groups' => true,
44-
'control_structure_braces' => true,
45-
'no_multiple_statements_per_line' => true,
46-
'no_useless_nullsafe_operator' => true,
47-
'phpdoc_separation' => [
44+
'class_definition' => [
45+
'multi_line_extends_each_single_line' => true,
46+
'single_item_single_line' => true,
47+
'single_line' => true,
48+
'space_before_parenthesis' => true,
49+
'inline_constructor_arguments' => true,
50+
],
51+
'control_structure_braces' => true,
52+
'no_multiple_statements_per_line' => true,
53+
'no_useless_nullsafe_operator' => true,
54+
'phpdoc_separation' => [
4855
'groups' => [
4956
['immutable', 'psalm-immutable'],
5057
['param', 'phpstan-param', 'psalm-param'],

.php-cs-fixer.no-header.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,17 @@
3333
$overrides = [
3434
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
3535
'blank_line_between_import_groups' => true,
36-
'control_structure_braces' => true,
37-
'no_multiple_statements_per_line' => true,
38-
'no_useless_nullsafe_operator' => true,
39-
'phpdoc_separation' => [
36+
'class_definition' => [
37+
'multi_line_extends_each_single_line' => true,
38+
'single_item_single_line' => true,
39+
'single_line' => true,
40+
'space_before_parenthesis' => true,
41+
'inline_constructor_arguments' => true,
42+
],
43+
'control_structure_braces' => true,
44+
'no_multiple_statements_per_line' => true,
45+
'no_useless_nullsafe_operator' => true,
46+
'phpdoc_separation' => [
4047
'groups' => [
4148
['immutable', 'psalm-immutable'],
4249
['param', 'phpstan-param', 'psalm-param'],

.php-cs-fixer.user-guide.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,17 @@
3535
'class_attributes_separation' => false,
3636
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
3737
'blank_line_between_import_groups' => true,
38-
'control_structure_braces' => true,
39-
'no_multiple_statements_per_line' => true,
40-
'no_useless_nullsafe_operator' => true,
41-
'phpdoc_separation' => [
38+
'class_definition' => [
39+
'multi_line_extends_each_single_line' => true,
40+
'single_item_single_line' => true,
41+
'single_line' => true,
42+
'space_before_parenthesis' => true,
43+
'inline_constructor_arguments' => true,
44+
],
45+
'control_structure_braces' => true,
46+
'no_multiple_statements_per_line' => true,
47+
'no_useless_nullsafe_operator' => true,
48+
'phpdoc_separation' => [
4249
'groups' => [
4350
['immutable', 'psalm-immutable'],
4451
['param', 'phpstan-param', 'psalm-param'],

0 commit comments

Comments
 (0)