Skip to content

Commit 085b6ba

Browse files
authored
Add remove dublicate use classes
1 parent 9fa418a commit 085b6ba

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)