Skip to content

Commit 72bfa3d

Browse files
authored
Merge pull request #1036 from ergebnis/feature/no-unneeded-braces
Enhancement: Enable `namespaces` option of `no_unneeded_braces` fixer
2 parents e1a4ae4 + d3a9425 commit 72bfa3d

27 files changed

+28
-26
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ For a full diff see [`6.23.0...main`][6.23.0...main].
1212

1313
- Updated `kubawerlos/php-cs-fixer-custom-fixers` ([#1025]), by [@dependabot]
1414
- Updated `friendsofphp/php-cs-fixer` ([#1026]), by [@dependabot]
15+
- Enabled the `namespaces` option of `no_uneeded_braces` fixer ([#1036]), by [@localheinz]
1516

1617
## [`6.23.0`][6.23.0]
1718

@@ -1569,6 +1570,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
15691570
[#1023]: https://github.com/ergebnis/php-cs-fixer-config/pull/1023
15701571
[#1025]: https://github.com/ergebnis/php-cs-fixer-config/pull/1025
15711572
[#1026]: https://github.com/ergebnis/php-cs-fixer-config/pull/1026
1573+
[#1036]: https://github.com/ergebnis/php-cs-fixer-config/pull/1036
15721574

15731575
[@dependabot]: https://github.com/apps/dependabot
15741576
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php53.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public static function create(): RuleSet
387387
'no_trailing_whitespace_in_comment' => true,
388388
'no_trailing_whitespace_in_string' => true,
389389
'no_unneeded_braces' => [
390-
'namespaces' => false,
390+
'namespaces' => true,
391391
],
392392
'no_unneeded_control_parentheses' => [
393393
'statements' => [

src/RuleSet/Php54.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public static function create(): RuleSet
388388
'no_trailing_whitespace_in_comment' => true,
389389
'no_trailing_whitespace_in_string' => true,
390390
'no_unneeded_braces' => [
391-
'namespaces' => false,
391+
'namespaces' => true,
392392
],
393393
'no_unneeded_control_parentheses' => [
394394
'statements' => [

src/RuleSet/Php55.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php56.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php70.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php71.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php72.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php73.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

src/RuleSet/Php74.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ public static function create(): RuleSet
392392
'no_trailing_whitespace_in_comment' => true,
393393
'no_trailing_whitespace_in_string' => true,
394394
'no_unneeded_braces' => [
395-
'namespaces' => false,
395+
'namespaces' => true,
396396
],
397397
'no_unneeded_control_parentheses' => [
398398
'statements' => [

0 commit comments

Comments
 (0)