From 93025442a32724276fde3a0180c593711e094e06 Mon Sep 17 00:00:00 2001 From: "John Paul E. Balandan, CPA" Date: Thu, 8 Sep 2022 14:33:31 +0800 Subject: [PATCH] Add options to `new_with_braces` --- .php-cs-fixer.dist.php | 4 ++++ .php-cs-fixer.no-header.php | 4 ++++ .php-cs-fixer.user-guide.php | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index c560cfb89cd0..457b60219ae8 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -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' => [ diff --git a/.php-cs-fixer.no-header.php b/.php-cs-fixer.no-header.php index 1e9c405b5b7c..f2b72650392e 100644 --- a/.php-cs-fixer.no-header.php +++ b/.php-cs-fixer.no-header.php @@ -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' => [ diff --git a/.php-cs-fixer.user-guide.php b/.php-cs-fixer.user-guide.php index ee728975a249..57f771d4cdcb 100644 --- a/.php-cs-fixer.user-guide.php +++ b/.php-cs-fixer.user-guide.php @@ -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' => [