mirror of
https://github.com/rectorphp/rector.git
synced 2024-06-21 18:42:24 +00:00
[CodingStyle] Fix extra space on no extra import (#5777)
This commit is contained in:
parent
a2e36d5a04
commit
a8a11cdead
|
@ -45,6 +45,9 @@ final class UseImportsAdder
|
|||
);
|
||||
|
||||
$newUses = $this->createUses($useImportTypes, $functionUseImportTypes, null);
|
||||
if ($newUses === []) {
|
||||
return $stmts;
|
||||
}
|
||||
|
||||
// place after declare strict_types
|
||||
foreach ($stmts as $key => $stmt) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user