From 62d8c09cce19dae64a338fe4b22f2660b96dafec Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Feb 2012 15:31:07 -0600 Subject: [PATCH] trim a long ling. --- laravel/cli/tasks/migrate/migrator.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/laravel/cli/tasks/migrate/migrator.php b/laravel/cli/tasks/migrate/migrator.php index b7727f52..47ad2f2f 100644 --- a/laravel/cli/tasks/migrate/migrator.php +++ b/laravel/cli/tasks/migrate/migrator.php @@ -224,10 +224,12 @@ protected function stub($bundle, $migration) { $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, // where the bundle name is prefixed to the class if it is not in - // the default bundle. - $class = Bundle::class_prefix($bundle).Str::classify($migration); + // the default "application" bundle. + $class = $prefix.Str::classify($migration); return str_replace('{{class}}', $class, $stub); }