1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 08:11:27 +02:00

Fix code style and doc block

This commit is contained in:
Franz Liedke
2018-11-29 21:31:12 +01:00
parent 992bd2f3ad
commit ff17cba95a

View File

@@ -223,11 +223,14 @@ class ExtensionManager
* *
* @param Extension $extension * @param Extension $extension
* @param bool|true $up * @param bool|true $up
* @return array Notes from the migrator. * @return void
*/ */
public function migrate(Extension $extension, $up = true) public function migrate(Extension $extension, $up = true)
{ {
if ($extension->hasMigrations()) { if (! $extension->hasMigrations()) {
return;
}
$migrationDir = $extension->getPath().'/migrations'; $migrationDir = $extension->getPath().'/migrations';
$this->app->bind('Illuminate\Database\Schema\Builder', function ($container) { $this->app->bind('Illuminate\Database\Schema\Builder', function ($container) {
@@ -240,7 +243,6 @@ class ExtensionManager
$this->migrator->reset($migrationDir, $extension); $this->migrator->reset($migrationDir, $extension);
} }
} }
}
/** /**
* Runs the database migrations to reset the database to its old state. * Runs the database migrations to reset the database to its old state.