From d17e387bb97f24c37473227f3e202cc91094f152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 8 Dec 2020 22:26:02 +0100 Subject: [PATCH] Enhancement: Enable clean_namespace fixer --- CHANGELOG.md | 2 ++ src/RuleSet/Php71.php | 2 +- src/RuleSet/Php73.php | 2 +- src/RuleSet/Php74.php | 2 +- test/Unit/RuleSet/Php71Test.php | 2 +- test/Unit/RuleSet/Php73Test.php | 2 +- test/Unit/RuleSet/Php74Test.php | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53d503d6..cb024d2b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For a full diff see [`2.6.1...main`][2.6.1...main]. ### Changed * Enabled `array_push` fixer ([#279]), by [@localheinz] +* Enabled `clean_namespace` fixer ([#280]), by [@localheinz] ## [`2.6.1`][2.6.1] @@ -227,6 +228,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#265]: https://github.com/ergebnis/php-cs-fixer-config/pull/265 [#276]: https://github.com/ergebnis/php-cs-fixer-config/pull/276 [#279]: https://github.com/ergebnis/php-cs-fixer-config/pull/279 +[#280]: https://github.com/ergebnis/php-cs-fixer-config/pull/280 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index b30c616f..3a1b0dc1 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -69,7 +69,7 @@ final class Php71 extends AbstractRuleSet ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 3c7a2bee..84b0edb1 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -69,7 +69,7 @@ final class Php73 extends AbstractRuleSet ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 2238d06e..569dc5f6 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -69,7 +69,7 @@ final class Php74 extends AbstractRuleSet ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 25dfdc9a..2ba9baa9 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -75,7 +75,7 @@ final class Php71Test extends AbstractRuleSetTestCase ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 2c41c796..5dd50865 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -75,7 +75,7 @@ final class Php73Test extends AbstractRuleSetTestCase ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 771f076a..25f3c16a 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -75,7 +75,7 @@ final class Php74Test extends AbstractRuleSetTestCase ], 'class_definition' => true, 'class_keyword_remove' => false, - 'clean_namespace' => false, + 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'combine_nested_dirname' => true,