mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 16:09:39 +08:00
Fix code style and doc block
This commit is contained in:
parent
992bd2f3ad
commit
ff17cba95a
@ -223,11 +223,14 @@ class ExtensionManager
|
||||
*
|
||||
* @param Extension $extension
|
||||
* @param bool|true $up
|
||||
* @return array Notes from the migrator.
|
||||
* @return void
|
||||
*/
|
||||
public function migrate(Extension $extension, $up = true)
|
||||
{
|
||||
if ($extension->hasMigrations()) {
|
||||
if (! $extension->hasMigrations()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$migrationDir = $extension->getPath().'/migrations';
|
||||
|
||||
$this->app->bind('Illuminate\Database\Schema\Builder', function ($container) {
|
||||
@ -240,7 +243,6 @@ class ExtensionManager
|
||||
$this->migrator->reset($migrationDir, $extension);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Runs the database migrations to reset the database to its old state.
|
||||
|
Loading…
x
Reference in New Issue
Block a user