Skip to content

Commit 69aadc9

Browse files
committed
Add inline_constructor_arguments option to class_definition
1 parent 7b2ad9c commit 69aadc9

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
]);
4040

4141
$overrides = [
42+
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
43+
'class_definition' => [
44+
'multi_line_extends_each_single_line' => true,
45+
'single_item_single_line' => true,
46+
'single_line' => true,
47+
'space_before_parenthesis' => true,
48+
'inline_constructor_arguments' => true,
49+
],
4250
'phpdoc_separation' => [
4351
'groups' => [
4452
['immutable', 'psalm-immutable'],
@@ -52,6 +60,7 @@
5260
['var', 'phpstan-var', 'psalm-var'],
5361
],
5462
],
63+
// >>>>>>>>>>>>>>>>>>>>>>>>>
5564
];
5665

5766
$options = [

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
]);
3232

3333
$overrides = [
34+
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
35+
'class_definition' => [
36+
'multi_line_extends_each_single_line' => true,
37+
'single_item_single_line' => true,
38+
'single_line' => true,
39+
'space_before_parenthesis' => true,
40+
'inline_constructor_arguments' => true,
41+
],
3442
'phpdoc_separation' => [
3543
'groups' => [
3644
['immutable', 'psalm-immutable'],
@@ -44,6 +52,7 @@
4452
['var', 'phpstan-var', 'psalm-var'],
4553
],
4654
],
55+
// >>>>>>>>>>>>>>>>>>>>>>>>>
4756
];
4857

4958
$options = [

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,15 @@
3333
'php_unit_internal_class' => false,
3434
'no_unused_imports' => false,
3535
'class_attributes_separation' => false,
36-
'phpdoc_separation' => [
36+
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
37+
'class_definition' => [
38+
'multi_line_extends_each_single_line' => true,
39+
'single_item_single_line' => true,
40+
'single_line' => true,
41+
'space_before_parenthesis' => true,
42+
'inline_constructor_arguments' => true,
43+
],
44+
'phpdoc_separation' => [
3745
'groups' => [
3846
['immutable', 'psalm-immutable'],
3947
['param', 'phpstan-param', 'psalm-param'],
@@ -46,6 +54,7 @@
4654
['var', 'phpstan-var', 'psalm-var'],
4755
],
4856
],
57+
// >>>>>>>>>>>>>>>>>>>>>>>>>
4958
];
5059

5160
$options = [

0 commit comments

Comments
 (0)