Skip to content

Commit

Permalink
Merge pull request #6514 from paulbalandan/new-with-braces
Browse files Browse the repository at this point in the history
Add options to `new_with_braces`
  • Loading branch information
paulbalandan authored Sep 9, 2022
2 parents 46ddce5 + 9302544 commit 2a8b1ba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
Expand Down
4 changes: 4 additions & 0 deletions .php-cs-fixer.no-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
Expand Down
4 changes: 4 additions & 0 deletions .php-cs-fixer.user-guide.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
'closure_function_spacing' => 'one',
'trailing_comma_single_line' => false,
],
'new_with_braces' => [
'named_class' => true,
'anonymous_class' => true,
],
'no_multiple_statements_per_line' => true,
'no_trailing_comma_in_singleline' => [
'elements' => [
Expand Down

0 comments on commit 2a8b1ba

Please sign in to comment.