Style fixes

This commit is contained in:
Nabeel Shahzad
2019-04-07 22:12:45 -05:00
parent c0afb2ea8f
commit e4b8707e34

View File

@@ -22,7 +22,8 @@ class MigrationService extends Service
} }
/** /**
* Syncronize all of the seed files, run this after the * Syncronize all of the seed files, run this after the migrations
* and on first install.
*/ */
public function syncAllSeeds(): void public function syncAllSeeds(): void
{ {
@@ -150,13 +151,13 @@ class MigrationService extends Service
public function getMigrationPaths(): array public function getMigrationPaths(): array
{ {
$paths = [ $paths = [
'core' => \App::databasePath().'/migrations' 'core' => \App::databasePath().'/migrations',
]; ];
$modules = Module::allEnabled(); $modules = Module::allEnabled();
foreach ($modules as $module) { foreach ($modules as $module) {
$module_path = $module->getPath().'/Database/migrations'; $module_path = $module->getPath().'/Database/migrations';
if(file_exists($module_path)) { if (file_exists($module_path)) {
$paths[$module->getName()] = $module_path; $paths[$module->getName()] = $module_path;
} }
} }