Repository: PHP-CS-Fixer/PHP-CS-Fixer (php)

Issue:
SingleImportPerStatementFixer does not temove braces when only single item
### Feature request

```php
use Foo\Bar\{Baz};
```

On the one hand this is a single import but on the other hand the braces `{}` denote this is a group (of one item). I think this fixer could handle this and remove the braces.

### Link to Discussion where feature request was formed

_No response_

### Contribution Checks

- [ ] I have verified if this feature request was already discussed
- [ ] I am familiar with ["Feature or bug?"](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/feature-or-bug.rst)

Pull request description:
feat: `SingleImportPerStatementFixer` - remove braces for single import
fixes #8146

Patch:
diff --git a/src/Fixer/Import/SingleImportPerStatementFixer.php b/src/Fixer/Import/SingleImportPerStatementFixer.php
index a344fe441..274affe26 100644
--- a/src/Fixer/Import/SingleImportPerStatementFixer.php
+++ b/src/Fixer/Import/SingleImportPerStatementFixer.php
@@ -214,10 +214,6 @@ private function fixGroupUse(Tokens $tokens, int $index, int $endIndex): void
         [$groupPrefix, $groupOpenIndex, $groupCloseIndex, $comment] = $this->getGroupDeclaration($tokens, $index);
         $statements = $this->getGroupStatements($tokens, $groupPrefix, $groupOpenIndex, $groupCloseIndex, $comment);
 
-        if (\count($statements) < 2) {
-            return;
-        }
-
         $tokens->clearRange($index, $groupCloseIndex);
         if ($tokens[$endIndex]->equals(';')) {
             $tokens->clearAt($endIndex);


Test patch:
diff --git a/tests/Fixer/Import/SingleImportPerStatementFixerTest.php b/tests/Fixer/Import/SingleImportPerStatementFixerTest.php
index 1a072fd25..a89323a20 100644
--- a/tests/Fixer/Import/SingleImportPerStatementFixerTest.php
+++ b/tests/Fixer/Import/SingleImportPerStatementFixerTest.php
@@ -282,6 +282,15 @@ public static function provideFixCases(): iterable
             '<?php
 use D\{E,F,};
 use G\{H,I/*1*/,/*2*/};
+',
+        ];
+
+        yield [
+            '<?php
+use A\B;
+',
+            '<?php
+use A\{B};
 ',
         ];
     }
@@ -349,7 +358,7 @@ public static function provideFixPrePHP80Cases(): iterable
 use const some\c\ConstB as D;
 use const some\c\// use.,{}
 ConstC;
-use A\{B};
+use A\B;
 use D\E;
 use D\F;
                 ',