Skip to content

Commit 7164a33

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)