Skip to content

Commit

Permalink
Add options to new_with_braces
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Sep 9, 2022
1 parent 46ddce5 commit 9302544
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 9302544

Please sign in to comment.