trim a long ling.

This commit is contained in:
Taylor Otwell 2012-02-16 15:31:07 -06:00
parent 851db1703e
commit 62d8c09cce
1 changed files with 4 additions and 2 deletions

View File

@ -224,10 +224,12 @@ protected function stub($bundle, $migration)
{ {
$stub = File::get(path('sys').'cli/tasks/migrate/stub'.EXT); $stub = File::get(path('sys').'cli/tasks/migrate/stub'.EXT);
$prefix = Bundle::class_prefix($bundle);
// The class name is formatted simialrly to tasks and controllers, // The class name is formatted simialrly to tasks and controllers,
// where the bundle name is prefixed to the class if it is not in // where the bundle name is prefixed to the class if it is not in
// the default bundle. // the default "application" bundle.
$class = Bundle::class_prefix($bundle).Str::classify($migration); $class = $prefix.Str::classify($migration);
return str_replace('{{class}}', $class, $stub); return str_replace('{{class}}', $class, $stub);
} }