Skip to content
This repository was archived by the owner on Jun 11, 2026. It is now read-only.

Commit 7164a33

Browse files
authored
Merge pull request #24 from icqparty/master
Add remove dublicate use classes
2 parents 9fa418a + 085b6ba commit 7164a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Commands/CreateControllerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ protected function getRequiredUseClasses(array $fields, array $additions = [])
412412
return strlen($a)-strlen($b);
413413
});
414414

415-
return implode(PHP_EOL, $commands);
415+
return implode(PHP_EOL, array_unique(commands));
416416
}
417417

418418
/**

0 commit comments

Comments
 (0)