Fix code style

parent d6c1090f
...@@ -53,14 +53,13 @@ class MigrateCommand extends Command ...@@ -53,14 +53,13 @@ class MigrateCommand extends Command
// migrations may be run for any customized path from within the application. // migrations may be run for any customized path from within the application.
if ($this->input->hasOption('path') && $this->option('path')) { if ($this->input->hasOption('path') && $this->option('path')) {
return collect($this->option('path'))->map(function ($path) { return collect($this->option('path'))->map(function ($path) {
return ! $this->usingRealPath() return ! $this->usingRealPath() ? $this->laravel->basePath() . '/' . $path : $path;
? $this->laravel->basePath() . '/' . $path
: $path;
})->all(); })->all();
} }
return array_merge( return array_merge(
$this->migrator->paths(), [$this->getMigrationPath()] $this->migrator->paths(),
[$this->getMigrationPath()]
); );
} }
...@@ -74,4 +73,3 @@ class MigrateCommand extends Command ...@@ -74,4 +73,3 @@ class MigrateCommand extends Command
return $this->laravel->basePath() . DIRECTORY_SEPARATOR . 'migrations'; return $this->laravel->basePath() . DIRECTORY_SEPARATOR . 'migrations';
} }
} }
...@@ -23,4 +23,3 @@ class MigrateInstallCommand extends Command ...@@ -23,4 +23,3 @@ class MigrateInstallCommand extends Command
$this->info('Migration table created successfully.'); $this->info('Migration table created successfully.');
} }
} }
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