[CodingStyle] Fix extra space on no extra import (#5777)

This commit is contained in:
Tomas Votruba 2021-03-05 01:16:22 +01:00 committed by GitHub
parent a2e36d5a04
commit a8a11cdead
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {