Skip to content

Commit 15451ad

Browse files
committed
Enable no_trailing_comma_in_singleline
1 parent 7b2ad9c commit 15451ad

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

.php-cs-fixer.dist.php

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

4141
$overrides = [
42+
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
43+
'no_trailing_comma_in_singleline' => [
44+
'elements' => [
45+
'arguments',
46+
'array_destructuring',
47+
'array',
48+
'group_import',
49+
],
50+
],
4251
'phpdoc_separation' => [
4352
'groups' => [
4453
['immutable', 'psalm-immutable'],

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

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

3333
$overrides = [
34+
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
35+
'no_trailing_comma_in_singleline' => [
36+
'elements' => [
37+
'arguments',
38+
'array_destructuring',
39+
'array',
40+
'group_import',
41+
],
42+
],
3443
'phpdoc_separation' => [
3544
'groups' => [
3645
['immutable', 'psalm-immutable'],

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,16 @@
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+
'no_trailing_comma_in_singleline' => [
38+
'elements' => [
39+
'arguments',
40+
'array_destructuring',
41+
'array',
42+
'group_import',
43+
],
44+
],
45+
'phpdoc_separation' => [
3746
'groups' => [
3847
['immutable', 'psalm-immutable'],
3948
['param', 'phpstan-param', 'psalm-param'],
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
$db->callFunction('some_function', $param1, $param2, /* ... */);
3+
$db->callFunction('some_function', $param1, $param2/* ... */);

0 commit comments

Comments
 (0)