Skip to content

Commit

Permalink
Enable no_trailing_comma_in_singleline
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Sep 3, 2022
1 parent 7b2ad9c commit 15451ad
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@
]);

$overrides = [
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
Expand Down
9 changes: 9 additions & 0 deletions .php-cs-fixer.no-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@
]);

$overrides = [
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
Expand Down
11 changes: 10 additions & 1 deletion .php-cs-fixer.user-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,16 @@
'php_unit_internal_class' => false,
'no_unused_imports' => false,
'class_attributes_separation' => false,
'phpdoc_separation' => [
// <<<<<<<<<<<<<<<<<<<<<<<< @TODO TO BE REMOVED ONCE LIVE IN CODING-STANDARD
'no_trailing_comma_in_singleline' => [
'elements' => [
'arguments',
'array_destructuring',
'array',
'group_import',
],
],
'phpdoc_separation' => [
'groups' => [
['immutable', 'psalm-immutable'],
['param', 'phpstan-param', 'psalm-param'],
Expand Down
2 changes: 1 addition & 1 deletion user_guide_src/source/database/call_function/002.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<?php

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

0 comments on commit 15451ad

Please sign in to comment.