@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('modules', function (Blueprint $table) { |
|
| 16 | + Schema::create('modules', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->timestamps(); |
| 19 | 19 | |
@@ -11,17 +11,17 @@ |
||
| 11 | 11 | public function boot() |
| 12 | 12 | { |
| 13 | 13 | $this->publishes([ |
| 14 | - __DIR__ . '/../config/module_manager.php' => config_path('module_manager.php'), |
|
| 14 | + __DIR__.'/../config/module_manager.php' => config_path('module_manager.php'), |
|
| 15 | 15 | ]); |
| 16 | 16 | |
| 17 | - $this->loadMigrationsFrom(__DIR__ . '/../database/migrations'); |
|
| 17 | + $this->loadMigrationsFrom(__DIR__.'/../database/migrations'); |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | - $this->mergeConfigFrom(__DIR__ . '/../config/module_manager.php', 'module_manager'); |
|
| 22 | + $this->mergeConfigFrom(__DIR__.'/../config/module_manager.php', 'module_manager'); |
|
| 23 | 23 | |
| 24 | - $this->app->singleton(ModuleManager::class, function ($app) { |
|
| 24 | + $this->app->singleton(ModuleManager::class, function($app) { |
|
| 25 | 25 | return new ModuleManager($app, $app->make(ModuleRegistryRepository::class)); |
| 26 | 26 | }); |
| 27 | 27 | } |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | { |
| 115 | 115 | $modules = $this->registry->enabled()->all(); |
| 116 | 116 | foreach ($modules as $model) { |
| 117 | - $module = $this->modules->first(function (AbstractModule $module) use ($model) { |
|
| 117 | + $module = $this->modules->first(function(AbstractModule $module) use ($model) { |
|
| 118 | 118 | return $module->getUniqueName() === $model->uniqueName; |
| 119 | 119 | }); |
| 120 | 120 | |