Commit c55a8f49 by Vincent Talbot

Update laravel/cli/tasks/migrate/migrator.php

parent a5c5d70b
...@@ -105,17 +105,17 @@ class Migrator extends Task { ...@@ -105,17 +105,17 @@ class Migrator extends Task {
// If bundles supplied, filter migrations to rollback only bundles' // If bundles supplied, filter migrations to rollback only bundles'
// migrations. // migrations.
if (count($arguments) > 0) if (count($arguments) > 0)
{ {
$bundles = $arguments; $bundles = $arguments;
if ( ! is_array($bundles)) $bundles = array($bundles); if ( ! is_array($bundles)) $bundles = array($bundles);
$migrations = array_filter($migrations, function($migration) use ($bundles) $migrations = array_filter($migrations, function($migration) use ($bundles)
{ {
return in_array($migration['bundle'], $bundles); return in_array($migration['bundle'], $bundles);
}); });
} }
if (count($migrations) == 0) if (count($migrations) == 0)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment